diff --git a/CHANGELOG.md b/CHANGELOG.md index b5cfc0fedd..05d98b50da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## HEAD (Unreleased) +- Update pulumi dependency (https://github.com/pulumi/pulumi-kubernetes/pull/1521) + - [sdk/go] Fix Go resource registrations (https://github.com/pulumi/pulumi/pull/6641) + - [sdk/python] Support `Args` classes (https://github.com/pulumi/pulumi/pull/6525) + - Do not return an ID when previewing the creation of a resource. (https://github.com/pulumi/pulumi-kubernetes/pull/1526) ## 2.9.1 (April 12, 2021) diff --git a/provider/go.mod b/provider/go.mod index 1f17268e02..97e0852d6d 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,8 +11,8 @@ require ( github.com/onsi/ginkgo v1.12.0 // indirect github.com/onsi/gomega v1.9.0 // indirect github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/pkg/v2 v2.23.2 - github.com/pulumi/pulumi/sdk/v2 v2.23.2 + github.com/pulumi/pulumi/pkg/v2 v2.25.0 + github.com/pulumi/pulumi/sdk/v2 v2.25.0 github.com/stretchr/testify v1.7.0 google.golang.org/grpc v1.34.0 helm.sh/helm/v3 v3.5.2 diff --git a/provider/go.sum b/provider/go.sum index b6e3e16d37..6f6158839a 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -922,10 +922,10 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.2.0 h1:wH4vA7pcjKuZzjF7lM8awk4fnuJO6idemZXoKnULUx4= github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.23.2 h1:ru9seiGJM8By7AoDCMfkTXO0ETJz5f5Kn5AjQ2UPbI4= -github.com/pulumi/pulumi/pkg/v2 v2.23.2/go.mod h1:NIXOUdL8dp/FbWENt57+uyh00zcbF3H6sQ6GmrsrHuE= -github.com/pulumi/pulumi/sdk/v2 v2.23.2 h1:7bEx7U/rpK8IKNSc+b9WfJ5f+gVkLpfWvUakbPvDBXw= -github.com/pulumi/pulumi/sdk/v2 v2.23.2/go.mod h1:sHQdzD0/cIopR5uLeoikXi1pNBv5SwA4M617VqdIA3E= +github.com/pulumi/pulumi/pkg/v2 v2.25.0 h1:xePilKMIZ2Px4HGsXucRlbgjzEslceHQy2d/F5eC554= +github.com/pulumi/pulumi/pkg/v2 v2.25.0/go.mod h1:JMRkBhLvcM8Dtejm9+Rtc5+fZ9ba+EPLEcMZFv7wXmw= +github.com/pulumi/pulumi/sdk/v2 v2.25.0 h1:mm/TJq4PZtLQtNJrutMHlS5lOPAzQWPB8rRyT+pzeEg= +github.com/pulumi/pulumi/sdk/v2 v2.25.0/go.mod h1:sHQdzD0/cIopR5uLeoikXi1pNBv5SwA4M617VqdIA3E= github.com/qri-io/starlib v0.4.2-0.20200213133954-ff2e8cd5ef8d/go.mod h1:7DPO4domFU579Ga6E61sB9VFNaniPVwJP5C4bBCu3wA= github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= diff --git a/sdk/go.mod b/sdk/go.mod index c293cb63a7..2d06f7b6fb 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -5,6 +5,6 @@ go 1.16 require ( github.com/blang/semver v3.5.1+incompatible github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529 + github.com/pulumi/pulumi/sdk/v2 v2.25.0 github.com/spf13/pflag v1.0.5 // indirect ) diff --git a/sdk/go.sum b/sdk/go.sum index 4d5a2d1416..d2a15e445f 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -48,6 +48,7 @@ github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= @@ -136,6 +137,7 @@ github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= @@ -159,8 +161,8 @@ github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8 github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529 h1:PKX++TRfU+a8tG0MajO/ghxEU0DxC8vpc+q9jsXkts4= -github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o= +github.com/pulumi/pulumi/sdk/v2 v2.25.0 h1:mm/TJq4PZtLQtNJrutMHlS5lOPAzQWPB8rRyT+pzeEg= +github.com/pulumi/pulumi/sdk/v2 v2.25.0/go.mod h1:sHQdzD0/cIopR5uLeoikXi1pNBv5SwA4M617VqdIA3E= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 h1:G04eS0JkAIVZfaJLjla9dNxkJCPiKIGZlw9AfOhzOD0= @@ -261,6 +263,7 @@ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -326,6 +329,7 @@ gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 h1:ivZFOIltbce2Mo8IjzUHAFoq/IylO9WHhNOA gopkg.in/src-d/go-git-fixtures.v3 v3.5.0/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= gopkg.in/src-d/go-git.v4 v4.13.1 h1:SRtFyV8Kxc0UP7aCHcijOMQGPxHSmMOPrzulQWolkYE= gopkg.in/src-d/go-git.v4 v4.13.1/go.mod h1:nx5NYcxdKxq5fpltdHnPa2Exj4Sx0EclMWZQbYDu2z8= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= diff --git a/sdk/go/kubernetes/admissionregistration/v1/init.go b/sdk/go/kubernetes/admissionregistration/v1/init.go index aeeff1f54a..485acb1988 100644 --- a/sdk/go/kubernetes/admissionregistration/v1/init.go +++ b/sdk/go/kubernetes/admissionregistration/v1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration": - r, err = NewMutatingWebhookConfiguration(ctx, name, nil, pulumi.URN_(urn)) + r = &MutatingWebhookConfiguration{} case "kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList": - r, err = NewMutatingWebhookConfigurationList(ctx, name, nil, pulumi.URN_(urn)) + r = &MutatingWebhookConfigurationList{} case "kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration": - r, err = NewValidatingWebhookConfiguration(ctx, name, nil, pulumi.URN_(urn)) + r = &ValidatingWebhookConfiguration{} case "kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList": - r, err = NewValidatingWebhookConfigurationList(ctx, name, nil, pulumi.URN_(urn)) + r = &ValidatingWebhookConfigurationList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/admissionregistration/v1beta1/init.go b/sdk/go/kubernetes/admissionregistration/v1beta1/init.go index 8b257c6cad..1dad921838 100644 --- a/sdk/go/kubernetes/admissionregistration/v1beta1/init.go +++ b/sdk/go/kubernetes/admissionregistration/v1beta1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration": - r, err = NewMutatingWebhookConfiguration(ctx, name, nil, pulumi.URN_(urn)) + r = &MutatingWebhookConfiguration{} case "kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList": - r, err = NewMutatingWebhookConfigurationList(ctx, name, nil, pulumi.URN_(urn)) + r = &MutatingWebhookConfigurationList{} case "kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration": - r, err = NewValidatingWebhookConfiguration(ctx, name, nil, pulumi.URN_(urn)) + r = &ValidatingWebhookConfiguration{} case "kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList": - r, err = NewValidatingWebhookConfigurationList(ctx, name, nil, pulumi.URN_(urn)) + r = &ValidatingWebhookConfigurationList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apiextensions/v1/init.go b/sdk/go/kubernetes/apiextensions/v1/init.go index c5207df347..fa374656c4 100644 --- a/sdk/go/kubernetes/apiextensions/v1/init.go +++ b/sdk/go/kubernetes/apiextensions/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition": - r, err = NewCustomResourceDefinition(ctx, name, nil, pulumi.URN_(urn)) + r = &CustomResourceDefinition{} case "kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList": - r, err = NewCustomResourceDefinitionList(ctx, name, nil, pulumi.URN_(urn)) + r = &CustomResourceDefinitionList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apiextensions/v1beta1/init.go b/sdk/go/kubernetes/apiextensions/v1beta1/init.go index 295ec22518..2cc247196b 100644 --- a/sdk/go/kubernetes/apiextensions/v1beta1/init.go +++ b/sdk/go/kubernetes/apiextensions/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition": - r, err = NewCustomResourceDefinition(ctx, name, nil, pulumi.URN_(urn)) + r = &CustomResourceDefinition{} case "kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList": - r, err = NewCustomResourceDefinitionList(ctx, name, nil, pulumi.URN_(urn)) + r = &CustomResourceDefinitionList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apiregistration/v1/init.go b/sdk/go/kubernetes/apiregistration/v1/init.go index 3050803e59..e7fe2dd537 100644 --- a/sdk/go/kubernetes/apiregistration/v1/init.go +++ b/sdk/go/kubernetes/apiregistration/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apiregistration.k8s.io/v1:APIService": - r, err = NewAPIService(ctx, name, nil, pulumi.URN_(urn)) + r = &APIService{} case "kubernetes:apiregistration.k8s.io/v1:APIServiceList": - r, err = NewAPIServiceList(ctx, name, nil, pulumi.URN_(urn)) + r = &APIServiceList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apiregistration/v1beta1/init.go b/sdk/go/kubernetes/apiregistration/v1beta1/init.go index c6db85269b..937d8f46bd 100644 --- a/sdk/go/kubernetes/apiregistration/v1beta1/init.go +++ b/sdk/go/kubernetes/apiregistration/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apiregistration.k8s.io/v1beta1:APIService": - r, err = NewAPIService(ctx, name, nil, pulumi.URN_(urn)) + r = &APIService{} case "kubernetes:apiregistration.k8s.io/v1beta1:APIServiceList": - r, err = NewAPIServiceList(ctx, name, nil, pulumi.URN_(urn)) + r = &APIServiceList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apps/v1/init.go b/sdk/go/kubernetes/apps/v1/init.go index bad6393bbb..4a60f16761 100644 --- a/sdk/go/kubernetes/apps/v1/init.go +++ b/sdk/go/kubernetes/apps/v1/init.go @@ -22,29 +22,30 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apps/v1:ControllerRevision": - r, err = NewControllerRevision(ctx, name, nil, pulumi.URN_(urn)) + r = &ControllerRevision{} case "kubernetes:apps/v1:ControllerRevisionList": - r, err = NewControllerRevisionList(ctx, name, nil, pulumi.URN_(urn)) + r = &ControllerRevisionList{} case "kubernetes:apps/v1:DaemonSet": - r, err = NewDaemonSet(ctx, name, nil, pulumi.URN_(urn)) + r = &DaemonSet{} case "kubernetes:apps/v1:DaemonSetList": - r, err = NewDaemonSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &DaemonSetList{} case "kubernetes:apps/v1:Deployment": - r, err = NewDeployment(ctx, name, nil, pulumi.URN_(urn)) + r = &Deployment{} case "kubernetes:apps/v1:DeploymentList": - r, err = NewDeploymentList(ctx, name, nil, pulumi.URN_(urn)) + r = &DeploymentList{} case "kubernetes:apps/v1:ReplicaSet": - r, err = NewReplicaSet(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicaSet{} case "kubernetes:apps/v1:ReplicaSetList": - r, err = NewReplicaSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicaSetList{} case "kubernetes:apps/v1:StatefulSet": - r, err = NewStatefulSet(ctx, name, nil, pulumi.URN_(urn)) + r = &StatefulSet{} case "kubernetes:apps/v1:StatefulSetList": - r, err = NewStatefulSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &StatefulSetList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apps/v1beta1/init.go b/sdk/go/kubernetes/apps/v1beta1/init.go index 5bb888bfc4..9e793b1c4f 100644 --- a/sdk/go/kubernetes/apps/v1beta1/init.go +++ b/sdk/go/kubernetes/apps/v1beta1/init.go @@ -22,21 +22,22 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apps/v1beta1:ControllerRevision": - r, err = NewControllerRevision(ctx, name, nil, pulumi.URN_(urn)) + r = &ControllerRevision{} case "kubernetes:apps/v1beta1:ControllerRevisionList": - r, err = NewControllerRevisionList(ctx, name, nil, pulumi.URN_(urn)) + r = &ControllerRevisionList{} case "kubernetes:apps/v1beta1:Deployment": - r, err = NewDeployment(ctx, name, nil, pulumi.URN_(urn)) + r = &Deployment{} case "kubernetes:apps/v1beta1:DeploymentList": - r, err = NewDeploymentList(ctx, name, nil, pulumi.URN_(urn)) + r = &DeploymentList{} case "kubernetes:apps/v1beta1:StatefulSet": - r, err = NewStatefulSet(ctx, name, nil, pulumi.URN_(urn)) + r = &StatefulSet{} case "kubernetes:apps/v1beta1:StatefulSetList": - r, err = NewStatefulSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &StatefulSetList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/apps/v1beta2/init.go b/sdk/go/kubernetes/apps/v1beta2/init.go index 8514164a8e..9a1fb0159c 100644 --- a/sdk/go/kubernetes/apps/v1beta2/init.go +++ b/sdk/go/kubernetes/apps/v1beta2/init.go @@ -22,29 +22,30 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:apps/v1beta2:ControllerRevision": - r, err = NewControllerRevision(ctx, name, nil, pulumi.URN_(urn)) + r = &ControllerRevision{} case "kubernetes:apps/v1beta2:ControllerRevisionList": - r, err = NewControllerRevisionList(ctx, name, nil, pulumi.URN_(urn)) + r = &ControllerRevisionList{} case "kubernetes:apps/v1beta2:DaemonSet": - r, err = NewDaemonSet(ctx, name, nil, pulumi.URN_(urn)) + r = &DaemonSet{} case "kubernetes:apps/v1beta2:DaemonSetList": - r, err = NewDaemonSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &DaemonSetList{} case "kubernetes:apps/v1beta2:Deployment": - r, err = NewDeployment(ctx, name, nil, pulumi.URN_(urn)) + r = &Deployment{} case "kubernetes:apps/v1beta2:DeploymentList": - r, err = NewDeploymentList(ctx, name, nil, pulumi.URN_(urn)) + r = &DeploymentList{} case "kubernetes:apps/v1beta2:ReplicaSet": - r, err = NewReplicaSet(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicaSet{} case "kubernetes:apps/v1beta2:ReplicaSetList": - r, err = NewReplicaSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicaSetList{} case "kubernetes:apps/v1beta2:StatefulSet": - r, err = NewStatefulSet(ctx, name, nil, pulumi.URN_(urn)) + r = &StatefulSet{} case "kubernetes:apps/v1beta2:StatefulSetList": - r, err = NewStatefulSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &StatefulSetList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/auditregistration/v1alpha1/init.go b/sdk/go/kubernetes/auditregistration/v1alpha1/init.go index cc9acb3b3d..654ec59ed6 100644 --- a/sdk/go/kubernetes/auditregistration/v1alpha1/init.go +++ b/sdk/go/kubernetes/auditregistration/v1alpha1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink": - r, err = NewAuditSink(ctx, name, nil, pulumi.URN_(urn)) + r = &AuditSink{} case "kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList": - r, err = NewAuditSinkList(ctx, name, nil, pulumi.URN_(urn)) + r = &AuditSinkList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/authentication/v1/init.go b/sdk/go/kubernetes/authentication/v1/init.go index 102530b68d..5681f7f142 100644 --- a/sdk/go/kubernetes/authentication/v1/init.go +++ b/sdk/go/kubernetes/authentication/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:authentication.k8s.io/v1:TokenRequest": - r, err = NewTokenRequest(ctx, name, nil, pulumi.URN_(urn)) + r = &TokenRequest{} case "kubernetes:authentication.k8s.io/v1:TokenReview": - r, err = NewTokenReview(ctx, name, nil, pulumi.URN_(urn)) + r = &TokenReview{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/authentication/v1beta1/init.go b/sdk/go/kubernetes/authentication/v1beta1/init.go index d6a8cd68c4..9278894271 100644 --- a/sdk/go/kubernetes/authentication/v1beta1/init.go +++ b/sdk/go/kubernetes/authentication/v1beta1/init.go @@ -22,11 +22,12 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:authentication.k8s.io/v1beta1:TokenReview": - r, err = NewTokenReview(ctx, name, nil, pulumi.URN_(urn)) + r = &TokenReview{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/authorization/v1/init.go b/sdk/go/kubernetes/authorization/v1/init.go index 664159199a..e779e87bd6 100644 --- a/sdk/go/kubernetes/authorization/v1/init.go +++ b/sdk/go/kubernetes/authorization/v1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview": - r, err = NewLocalSubjectAccessReview(ctx, name, nil, pulumi.URN_(urn)) + r = &LocalSubjectAccessReview{} case "kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview": - r, err = NewSelfSubjectAccessReview(ctx, name, nil, pulumi.URN_(urn)) + r = &SelfSubjectAccessReview{} case "kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview": - r, err = NewSelfSubjectRulesReview(ctx, name, nil, pulumi.URN_(urn)) + r = &SelfSubjectRulesReview{} case "kubernetes:authorization.k8s.io/v1:SubjectAccessReview": - r, err = NewSubjectAccessReview(ctx, name, nil, pulumi.URN_(urn)) + r = &SubjectAccessReview{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/authorization/v1beta1/init.go b/sdk/go/kubernetes/authorization/v1beta1/init.go index 42a471f0a0..236955b028 100644 --- a/sdk/go/kubernetes/authorization/v1beta1/init.go +++ b/sdk/go/kubernetes/authorization/v1beta1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview": - r, err = NewLocalSubjectAccessReview(ctx, name, nil, pulumi.URN_(urn)) + r = &LocalSubjectAccessReview{} case "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview": - r, err = NewSelfSubjectAccessReview(ctx, name, nil, pulumi.URN_(urn)) + r = &SelfSubjectAccessReview{} case "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview": - r, err = NewSelfSubjectRulesReview(ctx, name, nil, pulumi.URN_(urn)) + r = &SelfSubjectRulesReview{} case "kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview": - r, err = NewSubjectAccessReview(ctx, name, nil, pulumi.URN_(urn)) + r = &SubjectAccessReview{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/autoscaling/v1/init.go b/sdk/go/kubernetes/autoscaling/v1/init.go index 39c57b29d8..739304e9eb 100644 --- a/sdk/go/kubernetes/autoscaling/v1/init.go +++ b/sdk/go/kubernetes/autoscaling/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:autoscaling/v1:HorizontalPodAutoscaler": - r, err = NewHorizontalPodAutoscaler(ctx, name, nil, pulumi.URN_(urn)) + r = &HorizontalPodAutoscaler{} case "kubernetes:autoscaling/v1:HorizontalPodAutoscalerList": - r, err = NewHorizontalPodAutoscalerList(ctx, name, nil, pulumi.URN_(urn)) + r = &HorizontalPodAutoscalerList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/autoscaling/v2beta1/init.go b/sdk/go/kubernetes/autoscaling/v2beta1/init.go index f974952267..9e0b05ec93 100644 --- a/sdk/go/kubernetes/autoscaling/v2beta1/init.go +++ b/sdk/go/kubernetes/autoscaling/v2beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler": - r, err = NewHorizontalPodAutoscaler(ctx, name, nil, pulumi.URN_(urn)) + r = &HorizontalPodAutoscaler{} case "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList": - r, err = NewHorizontalPodAutoscalerList(ctx, name, nil, pulumi.URN_(urn)) + r = &HorizontalPodAutoscalerList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/autoscaling/v2beta2/init.go b/sdk/go/kubernetes/autoscaling/v2beta2/init.go index 7eec26639e..3480820acd 100644 --- a/sdk/go/kubernetes/autoscaling/v2beta2/init.go +++ b/sdk/go/kubernetes/autoscaling/v2beta2/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler": - r, err = NewHorizontalPodAutoscaler(ctx, name, nil, pulumi.URN_(urn)) + r = &HorizontalPodAutoscaler{} case "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList": - r, err = NewHorizontalPodAutoscalerList(ctx, name, nil, pulumi.URN_(urn)) + r = &HorizontalPodAutoscalerList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/batch/v1/init.go b/sdk/go/kubernetes/batch/v1/init.go index 8ed3c07908..963716a2ff 100644 --- a/sdk/go/kubernetes/batch/v1/init.go +++ b/sdk/go/kubernetes/batch/v1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:batch/v1:CronJob": - r, err = NewCronJob(ctx, name, nil, pulumi.URN_(urn)) + r = &CronJob{} case "kubernetes:batch/v1:CronJobList": - r, err = NewCronJobList(ctx, name, nil, pulumi.URN_(urn)) + r = &CronJobList{} case "kubernetes:batch/v1:Job": - r, err = NewJob(ctx, name, nil, pulumi.URN_(urn)) + r = &Job{} case "kubernetes:batch/v1:JobList": - r, err = NewJobList(ctx, name, nil, pulumi.URN_(urn)) + r = &JobList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/batch/v1beta1/init.go b/sdk/go/kubernetes/batch/v1beta1/init.go index 0bc9a2af98..c80e6442e7 100644 --- a/sdk/go/kubernetes/batch/v1beta1/init.go +++ b/sdk/go/kubernetes/batch/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:batch/v1beta1:CronJob": - r, err = NewCronJob(ctx, name, nil, pulumi.URN_(urn)) + r = &CronJob{} case "kubernetes:batch/v1beta1:CronJobList": - r, err = NewCronJobList(ctx, name, nil, pulumi.URN_(urn)) + r = &CronJobList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/batch/v2alpha1/init.go b/sdk/go/kubernetes/batch/v2alpha1/init.go index 67f63f3677..ffd982c282 100644 --- a/sdk/go/kubernetes/batch/v2alpha1/init.go +++ b/sdk/go/kubernetes/batch/v2alpha1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:batch/v2alpha1:CronJob": - r, err = NewCronJob(ctx, name, nil, pulumi.URN_(urn)) + r = &CronJob{} case "kubernetes:batch/v2alpha1:CronJobList": - r, err = NewCronJobList(ctx, name, nil, pulumi.URN_(urn)) + r = &CronJobList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/certificates/v1/init.go b/sdk/go/kubernetes/certificates/v1/init.go index d1a5663489..4ad43bf57b 100644 --- a/sdk/go/kubernetes/certificates/v1/init.go +++ b/sdk/go/kubernetes/certificates/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:certificates.k8s.io/v1:CertificateSigningRequest": - r, err = NewCertificateSigningRequest(ctx, name, nil, pulumi.URN_(urn)) + r = &CertificateSigningRequest{} case "kubernetes:certificates.k8s.io/v1:CertificateSigningRequestList": - r, err = NewCertificateSigningRequestList(ctx, name, nil, pulumi.URN_(urn)) + r = &CertificateSigningRequestList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/certificates/v1beta1/init.go b/sdk/go/kubernetes/certificates/v1beta1/init.go index 0ecbeb0e07..ab06f68e75 100644 --- a/sdk/go/kubernetes/certificates/v1beta1/init.go +++ b/sdk/go/kubernetes/certificates/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest": - r, err = NewCertificateSigningRequest(ctx, name, nil, pulumi.URN_(urn)) + r = &CertificateSigningRequest{} case "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList": - r, err = NewCertificateSigningRequestList(ctx, name, nil, pulumi.URN_(urn)) + r = &CertificateSigningRequestList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/coordination/v1/init.go b/sdk/go/kubernetes/coordination/v1/init.go index 1299e4b6b9..b1e59fcce8 100644 --- a/sdk/go/kubernetes/coordination/v1/init.go +++ b/sdk/go/kubernetes/coordination/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:coordination.k8s.io/v1:Lease": - r, err = NewLease(ctx, name, nil, pulumi.URN_(urn)) + r = &Lease{} case "kubernetes:coordination.k8s.io/v1:LeaseList": - r, err = NewLeaseList(ctx, name, nil, pulumi.URN_(urn)) + r = &LeaseList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/coordination/v1beta1/init.go b/sdk/go/kubernetes/coordination/v1beta1/init.go index 7d12f94cce..2e548e3c3d 100644 --- a/sdk/go/kubernetes/coordination/v1beta1/init.go +++ b/sdk/go/kubernetes/coordination/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:coordination.k8s.io/v1beta1:Lease": - r, err = NewLease(ctx, name, nil, pulumi.URN_(urn)) + r = &Lease{} case "kubernetes:coordination.k8s.io/v1beta1:LeaseList": - r, err = NewLeaseList(ctx, name, nil, pulumi.URN_(urn)) + r = &LeaseList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/core/v1/init.go b/sdk/go/kubernetes/core/v1/init.go index 61079317f2..88950e1e8a 100644 --- a/sdk/go/kubernetes/core/v1/init.go +++ b/sdk/go/kubernetes/core/v1/init.go @@ -22,73 +22,74 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:core/v1:Binding": - r, err = NewBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &Binding{} case "kubernetes:core/v1:ConfigMap": - r, err = NewConfigMap(ctx, name, nil, pulumi.URN_(urn)) + r = &ConfigMap{} case "kubernetes:core/v1:ConfigMapList": - r, err = NewConfigMapList(ctx, name, nil, pulumi.URN_(urn)) + r = &ConfigMapList{} case "kubernetes:core/v1:Endpoints": - r, err = NewEndpoints(ctx, name, nil, pulumi.URN_(urn)) + r = &Endpoints{} case "kubernetes:core/v1:EndpointsList": - r, err = NewEndpointsList(ctx, name, nil, pulumi.URN_(urn)) + r = &EndpointsList{} case "kubernetes:core/v1:EphemeralContainers": - r, err = NewEphemeralContainers(ctx, name, nil, pulumi.URN_(urn)) + r = &EphemeralContainers{} case "kubernetes:core/v1:Event": - r, err = NewEvent(ctx, name, nil, pulumi.URN_(urn)) + r = &Event{} case "kubernetes:core/v1:EventList": - r, err = NewEventList(ctx, name, nil, pulumi.URN_(urn)) + r = &EventList{} case "kubernetes:core/v1:LimitRange": - r, err = NewLimitRange(ctx, name, nil, pulumi.URN_(urn)) + r = &LimitRange{} case "kubernetes:core/v1:LimitRangeList": - r, err = NewLimitRangeList(ctx, name, nil, pulumi.URN_(urn)) + r = &LimitRangeList{} case "kubernetes:core/v1:Namespace": - r, err = NewNamespace(ctx, name, nil, pulumi.URN_(urn)) + r = &Namespace{} case "kubernetes:core/v1:NamespaceList": - r, err = NewNamespaceList(ctx, name, nil, pulumi.URN_(urn)) + r = &NamespaceList{} case "kubernetes:core/v1:Node": - r, err = NewNode(ctx, name, nil, pulumi.URN_(urn)) + r = &Node{} case "kubernetes:core/v1:NodeList": - r, err = NewNodeList(ctx, name, nil, pulumi.URN_(urn)) + r = &NodeList{} case "kubernetes:core/v1:PersistentVolume": - r, err = NewPersistentVolume(ctx, name, nil, pulumi.URN_(urn)) + r = &PersistentVolume{} case "kubernetes:core/v1:PersistentVolumeClaim": - r, err = NewPersistentVolumeClaim(ctx, name, nil, pulumi.URN_(urn)) + r = &PersistentVolumeClaim{} case "kubernetes:core/v1:PersistentVolumeClaimList": - r, err = NewPersistentVolumeClaimList(ctx, name, nil, pulumi.URN_(urn)) + r = &PersistentVolumeClaimList{} case "kubernetes:core/v1:PersistentVolumeList": - r, err = NewPersistentVolumeList(ctx, name, nil, pulumi.URN_(urn)) + r = &PersistentVolumeList{} case "kubernetes:core/v1:Pod": - r, err = NewPod(ctx, name, nil, pulumi.URN_(urn)) + r = &Pod{} case "kubernetes:core/v1:PodList": - r, err = NewPodList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodList{} case "kubernetes:core/v1:PodTemplate": - r, err = NewPodTemplate(ctx, name, nil, pulumi.URN_(urn)) + r = &PodTemplate{} case "kubernetes:core/v1:PodTemplateList": - r, err = NewPodTemplateList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodTemplateList{} case "kubernetes:core/v1:ReplicationController": - r, err = NewReplicationController(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicationController{} case "kubernetes:core/v1:ReplicationControllerList": - r, err = NewReplicationControllerList(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicationControllerList{} case "kubernetes:core/v1:ResourceQuota": - r, err = NewResourceQuota(ctx, name, nil, pulumi.URN_(urn)) + r = &ResourceQuota{} case "kubernetes:core/v1:ResourceQuotaList": - r, err = NewResourceQuotaList(ctx, name, nil, pulumi.URN_(urn)) + r = &ResourceQuotaList{} case "kubernetes:core/v1:Secret": - r, err = NewSecret(ctx, name, nil, pulumi.URN_(urn)) + r = &Secret{} case "kubernetes:core/v1:SecretList": - r, err = NewSecretList(ctx, name, nil, pulumi.URN_(urn)) + r = &SecretList{} case "kubernetes:core/v1:Service": - r, err = NewService(ctx, name, nil, pulumi.URN_(urn)) + r = &Service{} case "kubernetes:core/v1:ServiceAccount": - r, err = NewServiceAccount(ctx, name, nil, pulumi.URN_(urn)) + r = &ServiceAccount{} case "kubernetes:core/v1:ServiceAccountList": - r, err = NewServiceAccountList(ctx, name, nil, pulumi.URN_(urn)) + r = &ServiceAccountList{} case "kubernetes:core/v1:ServiceList": - r, err = NewServiceList(ctx, name, nil, pulumi.URN_(urn)) + r = &ServiceList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/discovery/v1/init.go b/sdk/go/kubernetes/discovery/v1/init.go index 5b141829c8..d44c77d86a 100644 --- a/sdk/go/kubernetes/discovery/v1/init.go +++ b/sdk/go/kubernetes/discovery/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:discovery.k8s.io/v1:EndpointSlice": - r, err = NewEndpointSlice(ctx, name, nil, pulumi.URN_(urn)) + r = &EndpointSlice{} case "kubernetes:discovery.k8s.io/v1:EndpointSliceList": - r, err = NewEndpointSliceList(ctx, name, nil, pulumi.URN_(urn)) + r = &EndpointSliceList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/discovery/v1beta1/init.go b/sdk/go/kubernetes/discovery/v1beta1/init.go index 08157192e6..ff1fff1059 100644 --- a/sdk/go/kubernetes/discovery/v1beta1/init.go +++ b/sdk/go/kubernetes/discovery/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:discovery.k8s.io/v1beta1:EndpointSlice": - r, err = NewEndpointSlice(ctx, name, nil, pulumi.URN_(urn)) + r = &EndpointSlice{} case "kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList": - r, err = NewEndpointSliceList(ctx, name, nil, pulumi.URN_(urn)) + r = &EndpointSliceList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/events/v1/init.go b/sdk/go/kubernetes/events/v1/init.go index 6ccd2731be..347cd6a5d0 100644 --- a/sdk/go/kubernetes/events/v1/init.go +++ b/sdk/go/kubernetes/events/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:events.k8s.io/v1:Event": - r, err = NewEvent(ctx, name, nil, pulumi.URN_(urn)) + r = &Event{} case "kubernetes:events.k8s.io/v1:EventList": - r, err = NewEventList(ctx, name, nil, pulumi.URN_(urn)) + r = &EventList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/events/v1beta1/init.go b/sdk/go/kubernetes/events/v1beta1/init.go index 852f3c86ff..ce1516f615 100644 --- a/sdk/go/kubernetes/events/v1beta1/init.go +++ b/sdk/go/kubernetes/events/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:events.k8s.io/v1beta1:Event": - r, err = NewEvent(ctx, name, nil, pulumi.URN_(urn)) + r = &Event{} case "kubernetes:events.k8s.io/v1beta1:EventList": - r, err = NewEventList(ctx, name, nil, pulumi.URN_(urn)) + r = &EventList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/extensions/v1beta1/init.go b/sdk/go/kubernetes/extensions/v1beta1/init.go index b6f8b3ff79..ae28cc7181 100644 --- a/sdk/go/kubernetes/extensions/v1beta1/init.go +++ b/sdk/go/kubernetes/extensions/v1beta1/init.go @@ -22,33 +22,34 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:extensions/v1beta1:DaemonSet": - r, err = NewDaemonSet(ctx, name, nil, pulumi.URN_(urn)) + r = &DaemonSet{} case "kubernetes:extensions/v1beta1:DaemonSetList": - r, err = NewDaemonSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &DaemonSetList{} case "kubernetes:extensions/v1beta1:Deployment": - r, err = NewDeployment(ctx, name, nil, pulumi.URN_(urn)) + r = &Deployment{} case "kubernetes:extensions/v1beta1:DeploymentList": - r, err = NewDeploymentList(ctx, name, nil, pulumi.URN_(urn)) + r = &DeploymentList{} case "kubernetes:extensions/v1beta1:Ingress": - r, err = NewIngress(ctx, name, nil, pulumi.URN_(urn)) + r = &Ingress{} case "kubernetes:extensions/v1beta1:IngressList": - r, err = NewIngressList(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressList{} case "kubernetes:extensions/v1beta1:NetworkPolicy": - r, err = NewNetworkPolicy(ctx, name, nil, pulumi.URN_(urn)) + r = &NetworkPolicy{} case "kubernetes:extensions/v1beta1:NetworkPolicyList": - r, err = NewNetworkPolicyList(ctx, name, nil, pulumi.URN_(urn)) + r = &NetworkPolicyList{} case "kubernetes:extensions/v1beta1:PodSecurityPolicy": - r, err = NewPodSecurityPolicy(ctx, name, nil, pulumi.URN_(urn)) + r = &PodSecurityPolicy{} case "kubernetes:extensions/v1beta1:PodSecurityPolicyList": - r, err = NewPodSecurityPolicyList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodSecurityPolicyList{} case "kubernetes:extensions/v1beta1:ReplicaSet": - r, err = NewReplicaSet(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicaSet{} case "kubernetes:extensions/v1beta1:ReplicaSetList": - r, err = NewReplicaSetList(ctx, name, nil, pulumi.URN_(urn)) + r = &ReplicaSetList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/flowcontrol/v1alpha1/init.go b/sdk/go/kubernetes/flowcontrol/v1alpha1/init.go index 12ae17dc64..98ca141f9d 100644 --- a/sdk/go/kubernetes/flowcontrol/v1alpha1/init.go +++ b/sdk/go/kubernetes/flowcontrol/v1alpha1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema": - r, err = NewFlowSchema(ctx, name, nil, pulumi.URN_(urn)) + r = &FlowSchema{} case "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList": - r, err = NewFlowSchemaList(ctx, name, nil, pulumi.URN_(urn)) + r = &FlowSchemaList{} case "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration": - r, err = NewPriorityLevelConfiguration(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityLevelConfiguration{} case "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList": - r, err = NewPriorityLevelConfigurationList(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityLevelConfigurationList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/flowcontrol/v1beta1/init.go b/sdk/go/kubernetes/flowcontrol/v1beta1/init.go index d7c0fd91e9..0d7522f965 100644 --- a/sdk/go/kubernetes/flowcontrol/v1beta1/init.go +++ b/sdk/go/kubernetes/flowcontrol/v1beta1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:flowcontrol.apiserver.k8s.io/v1beta1:FlowSchema": - r, err = NewFlowSchema(ctx, name, nil, pulumi.URN_(urn)) + r = &FlowSchema{} case "kubernetes:flowcontrol.apiserver.k8s.io/v1beta1:FlowSchemaList": - r, err = NewFlowSchemaList(ctx, name, nil, pulumi.URN_(urn)) + r = &FlowSchemaList{} case "kubernetes:flowcontrol.apiserver.k8s.io/v1beta1:PriorityLevelConfiguration": - r, err = NewPriorityLevelConfiguration(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityLevelConfiguration{} case "kubernetes:flowcontrol.apiserver.k8s.io/v1beta1:PriorityLevelConfigurationList": - r, err = NewPriorityLevelConfigurationList(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityLevelConfigurationList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/init.go b/sdk/go/kubernetes/init.go index 64c00cd8ae..216d629386 100644 --- a/sdk/go/kubernetes/init.go +++ b/sdk/go/kubernetes/init.go @@ -23,7 +23,9 @@ func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pul return nil, fmt.Errorf("unknown provider type: %s", typ) } - return NewProvider(ctx, name, nil, pulumi.URN_(urn)) + r := &Provider{} + err := ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) + return r, err } func init() { diff --git a/sdk/go/kubernetes/meta/v1/init.go b/sdk/go/kubernetes/meta/v1/init.go index 298f63f25c..a76223ef0b 100644 --- a/sdk/go/kubernetes/meta/v1/init.go +++ b/sdk/go/kubernetes/meta/v1/init.go @@ -22,11 +22,12 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:meta/v1:Status": - r, err = NewStatus(ctx, name, nil, pulumi.URN_(urn)) + r = &Status{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/networking/v1/init.go b/sdk/go/kubernetes/networking/v1/init.go index 01ec36bd5a..75cd8db027 100644 --- a/sdk/go/kubernetes/networking/v1/init.go +++ b/sdk/go/kubernetes/networking/v1/init.go @@ -22,21 +22,22 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:networking.k8s.io/v1:Ingress": - r, err = NewIngress(ctx, name, nil, pulumi.URN_(urn)) + r = &Ingress{} case "kubernetes:networking.k8s.io/v1:IngressClass": - r, err = NewIngressClass(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressClass{} case "kubernetes:networking.k8s.io/v1:IngressClassList": - r, err = NewIngressClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressClassList{} case "kubernetes:networking.k8s.io/v1:IngressList": - r, err = NewIngressList(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressList{} case "kubernetes:networking.k8s.io/v1:NetworkPolicy": - r, err = NewNetworkPolicy(ctx, name, nil, pulumi.URN_(urn)) + r = &NetworkPolicy{} case "kubernetes:networking.k8s.io/v1:NetworkPolicyList": - r, err = NewNetworkPolicyList(ctx, name, nil, pulumi.URN_(urn)) + r = &NetworkPolicyList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/networking/v1beta1/init.go b/sdk/go/kubernetes/networking/v1beta1/init.go index 84087128b3..9dece8740a 100644 --- a/sdk/go/kubernetes/networking/v1beta1/init.go +++ b/sdk/go/kubernetes/networking/v1beta1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:networking.k8s.io/v1beta1:Ingress": - r, err = NewIngress(ctx, name, nil, pulumi.URN_(urn)) + r = &Ingress{} case "kubernetes:networking.k8s.io/v1beta1:IngressClass": - r, err = NewIngressClass(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressClass{} case "kubernetes:networking.k8s.io/v1beta1:IngressClassList": - r, err = NewIngressClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressClassList{} case "kubernetes:networking.k8s.io/v1beta1:IngressList": - r, err = NewIngressList(ctx, name, nil, pulumi.URN_(urn)) + r = &IngressList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/node/v1/init.go b/sdk/go/kubernetes/node/v1/init.go index ae3fdef8a3..ab2ba93b36 100644 --- a/sdk/go/kubernetes/node/v1/init.go +++ b/sdk/go/kubernetes/node/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:node.k8s.io/v1:RuntimeClass": - r, err = NewRuntimeClass(ctx, name, nil, pulumi.URN_(urn)) + r = &RuntimeClass{} case "kubernetes:node.k8s.io/v1:RuntimeClassList": - r, err = NewRuntimeClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &RuntimeClassList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/node/v1alpha1/init.go b/sdk/go/kubernetes/node/v1alpha1/init.go index 5a65c4732e..a91c4f3c74 100644 --- a/sdk/go/kubernetes/node/v1alpha1/init.go +++ b/sdk/go/kubernetes/node/v1alpha1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:node.k8s.io/v1alpha1:RuntimeClass": - r, err = NewRuntimeClass(ctx, name, nil, pulumi.URN_(urn)) + r = &RuntimeClass{} case "kubernetes:node.k8s.io/v1alpha1:RuntimeClassList": - r, err = NewRuntimeClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &RuntimeClassList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/node/v1beta1/init.go b/sdk/go/kubernetes/node/v1beta1/init.go index afec75b913..60e4b094f3 100644 --- a/sdk/go/kubernetes/node/v1beta1/init.go +++ b/sdk/go/kubernetes/node/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:node.k8s.io/v1beta1:RuntimeClass": - r, err = NewRuntimeClass(ctx, name, nil, pulumi.URN_(urn)) + r = &RuntimeClass{} case "kubernetes:node.k8s.io/v1beta1:RuntimeClassList": - r, err = NewRuntimeClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &RuntimeClassList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/policy/v1/init.go b/sdk/go/kubernetes/policy/v1/init.go index a6ab9912fe..808686224f 100644 --- a/sdk/go/kubernetes/policy/v1/init.go +++ b/sdk/go/kubernetes/policy/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:policy/v1:PodDisruptionBudget": - r, err = NewPodDisruptionBudget(ctx, name, nil, pulumi.URN_(urn)) + r = &PodDisruptionBudget{} case "kubernetes:policy/v1:PodDisruptionBudgetList": - r, err = NewPodDisruptionBudgetList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodDisruptionBudgetList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/policy/v1beta1/init.go b/sdk/go/kubernetes/policy/v1beta1/init.go index 57a4c61f43..d31d98e322 100644 --- a/sdk/go/kubernetes/policy/v1beta1/init.go +++ b/sdk/go/kubernetes/policy/v1beta1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:policy/v1beta1:PodDisruptionBudget": - r, err = NewPodDisruptionBudget(ctx, name, nil, pulumi.URN_(urn)) + r = &PodDisruptionBudget{} case "kubernetes:policy/v1beta1:PodDisruptionBudgetList": - r, err = NewPodDisruptionBudgetList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodDisruptionBudgetList{} case "kubernetes:policy/v1beta1:PodSecurityPolicy": - r, err = NewPodSecurityPolicy(ctx, name, nil, pulumi.URN_(urn)) + r = &PodSecurityPolicy{} case "kubernetes:policy/v1beta1:PodSecurityPolicyList": - r, err = NewPodSecurityPolicyList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodSecurityPolicyList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/rbac/v1/init.go b/sdk/go/kubernetes/rbac/v1/init.go index 684c956188..477edc90aa 100644 --- a/sdk/go/kubernetes/rbac/v1/init.go +++ b/sdk/go/kubernetes/rbac/v1/init.go @@ -22,25 +22,26 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole": - r, err = NewClusterRole(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRole{} case "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding": - r, err = NewClusterRoleBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleBinding{} case "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList": - r, err = NewClusterRoleBindingList(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleBindingList{} case "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList": - r, err = NewClusterRoleList(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleList{} case "kubernetes:rbac.authorization.k8s.io/v1:Role": - r, err = NewRole(ctx, name, nil, pulumi.URN_(urn)) + r = &Role{} case "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding": - r, err = NewRoleBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleBinding{} case "kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList": - r, err = NewRoleBindingList(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleBindingList{} case "kubernetes:rbac.authorization.k8s.io/v1:RoleList": - r, err = NewRoleList(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/rbac/v1alpha1/init.go b/sdk/go/kubernetes/rbac/v1alpha1/init.go index e78b073e32..bdd5d3ff8e 100644 --- a/sdk/go/kubernetes/rbac/v1alpha1/init.go +++ b/sdk/go/kubernetes/rbac/v1alpha1/init.go @@ -22,25 +22,26 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole": - r, err = NewClusterRole(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRole{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding": - r, err = NewClusterRoleBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleBinding{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList": - r, err = NewClusterRoleBindingList(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleBindingList{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList": - r, err = NewClusterRoleList(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleList{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role": - r, err = NewRole(ctx, name, nil, pulumi.URN_(urn)) + r = &Role{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding": - r, err = NewRoleBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleBinding{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList": - r, err = NewRoleBindingList(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleBindingList{} case "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList": - r, err = NewRoleList(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/rbac/v1beta1/init.go b/sdk/go/kubernetes/rbac/v1beta1/init.go index 5a11e68ae8..6b6bd34244 100644 --- a/sdk/go/kubernetes/rbac/v1beta1/init.go +++ b/sdk/go/kubernetes/rbac/v1beta1/init.go @@ -22,25 +22,26 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole": - r, err = NewClusterRole(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRole{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding": - r, err = NewClusterRoleBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleBinding{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList": - r, err = NewClusterRoleBindingList(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleBindingList{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList": - r, err = NewClusterRoleList(ctx, name, nil, pulumi.URN_(urn)) + r = &ClusterRoleList{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:Role": - r, err = NewRole(ctx, name, nil, pulumi.URN_(urn)) + r = &Role{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding": - r, err = NewRoleBinding(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleBinding{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList": - r, err = NewRoleBindingList(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleBindingList{} case "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList": - r, err = NewRoleList(ctx, name, nil, pulumi.URN_(urn)) + r = &RoleList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/scheduling/v1/init.go b/sdk/go/kubernetes/scheduling/v1/init.go index 774e57343d..6b1d514d6f 100644 --- a/sdk/go/kubernetes/scheduling/v1/init.go +++ b/sdk/go/kubernetes/scheduling/v1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:scheduling.k8s.io/v1:PriorityClass": - r, err = NewPriorityClass(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityClass{} case "kubernetes:scheduling.k8s.io/v1:PriorityClassList": - r, err = NewPriorityClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityClassList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/scheduling/v1alpha1/init.go b/sdk/go/kubernetes/scheduling/v1alpha1/init.go index 1a24b86e1a..a5d1bf4a5f 100644 --- a/sdk/go/kubernetes/scheduling/v1alpha1/init.go +++ b/sdk/go/kubernetes/scheduling/v1alpha1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass": - r, err = NewPriorityClass(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityClass{} case "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList": - r, err = NewPriorityClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityClassList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/scheduling/v1beta1/init.go b/sdk/go/kubernetes/scheduling/v1beta1/init.go index 9c451a0dd4..5cfddaaa3d 100644 --- a/sdk/go/kubernetes/scheduling/v1beta1/init.go +++ b/sdk/go/kubernetes/scheduling/v1beta1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass": - r, err = NewPriorityClass(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityClass{} case "kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList": - r, err = NewPriorityClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &PriorityClassList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/settings/v1alpha1/init.go b/sdk/go/kubernetes/settings/v1alpha1/init.go index a9c7dcf83f..0d8abb47c0 100644 --- a/sdk/go/kubernetes/settings/v1alpha1/init.go +++ b/sdk/go/kubernetes/settings/v1alpha1/init.go @@ -22,13 +22,14 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:settings.k8s.io/v1alpha1:PodPreset": - r, err = NewPodPreset(ctx, name, nil, pulumi.URN_(urn)) + r = &PodPreset{} case "kubernetes:settings.k8s.io/v1alpha1:PodPresetList": - r, err = NewPodPresetList(ctx, name, nil, pulumi.URN_(urn)) + r = &PodPresetList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/storage/v1/init.go b/sdk/go/kubernetes/storage/v1/init.go index 2a46c7d80e..74ef2ef5ba 100644 --- a/sdk/go/kubernetes/storage/v1/init.go +++ b/sdk/go/kubernetes/storage/v1/init.go @@ -22,25 +22,26 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:storage.k8s.io/v1:CSIDriver": - r, err = NewCSIDriver(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIDriver{} case "kubernetes:storage.k8s.io/v1:CSIDriverList": - r, err = NewCSIDriverList(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIDriverList{} case "kubernetes:storage.k8s.io/v1:CSINode": - r, err = NewCSINode(ctx, name, nil, pulumi.URN_(urn)) + r = &CSINode{} case "kubernetes:storage.k8s.io/v1:CSINodeList": - r, err = NewCSINodeList(ctx, name, nil, pulumi.URN_(urn)) + r = &CSINodeList{} case "kubernetes:storage.k8s.io/v1:StorageClass": - r, err = NewStorageClass(ctx, name, nil, pulumi.URN_(urn)) + r = &StorageClass{} case "kubernetes:storage.k8s.io/v1:StorageClassList": - r, err = NewStorageClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &StorageClassList{} case "kubernetes:storage.k8s.io/v1:VolumeAttachment": - r, err = NewVolumeAttachment(ctx, name, nil, pulumi.URN_(urn)) + r = &VolumeAttachment{} case "kubernetes:storage.k8s.io/v1:VolumeAttachmentList": - r, err = NewVolumeAttachmentList(ctx, name, nil, pulumi.URN_(urn)) + r = &VolumeAttachmentList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/storage/v1alpha1/init.go b/sdk/go/kubernetes/storage/v1alpha1/init.go index 5f99538b39..46b6cd0ec3 100644 --- a/sdk/go/kubernetes/storage/v1alpha1/init.go +++ b/sdk/go/kubernetes/storage/v1alpha1/init.go @@ -22,17 +22,18 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacity": - r, err = NewCSIStorageCapacity(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIStorageCapacity{} case "kubernetes:storage.k8s.io/v1alpha1:CSIStorageCapacityList": - r, err = NewCSIStorageCapacityList(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIStorageCapacityList{} case "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment": - r, err = NewVolumeAttachment(ctx, name, nil, pulumi.URN_(urn)) + r = &VolumeAttachment{} case "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList": - r, err = NewVolumeAttachmentList(ctx, name, nil, pulumi.URN_(urn)) + r = &VolumeAttachmentList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/go/kubernetes/storage/v1beta1/init.go b/sdk/go/kubernetes/storage/v1beta1/init.go index 8959586c5c..9e5501207a 100644 --- a/sdk/go/kubernetes/storage/v1beta1/init.go +++ b/sdk/go/kubernetes/storage/v1beta1/init.go @@ -22,29 +22,30 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "kubernetes:storage.k8s.io/v1beta1:CSIDriver": - r, err = NewCSIDriver(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIDriver{} case "kubernetes:storage.k8s.io/v1beta1:CSIDriverList": - r, err = NewCSIDriverList(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIDriverList{} case "kubernetes:storage.k8s.io/v1beta1:CSINode": - r, err = NewCSINode(ctx, name, nil, pulumi.URN_(urn)) + r = &CSINode{} case "kubernetes:storage.k8s.io/v1beta1:CSINodeList": - r, err = NewCSINodeList(ctx, name, nil, pulumi.URN_(urn)) + r = &CSINodeList{} case "kubernetes:storage.k8s.io/v1beta1:CSIStorageCapacity": - r, err = NewCSIStorageCapacity(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIStorageCapacity{} case "kubernetes:storage.k8s.io/v1beta1:CSIStorageCapacityList": - r, err = NewCSIStorageCapacityList(ctx, name, nil, pulumi.URN_(urn)) + r = &CSIStorageCapacityList{} case "kubernetes:storage.k8s.io/v1beta1:StorageClass": - r, err = NewStorageClass(ctx, name, nil, pulumi.URN_(urn)) + r = &StorageClass{} case "kubernetes:storage.k8s.io/v1beta1:StorageClassList": - r, err = NewStorageClassList(ctx, name, nil, pulumi.URN_(urn)) + r = &StorageClassList{} case "kubernetes:storage.k8s.io/v1beta1:VolumeAttachment": - r, err = NewVolumeAttachment(ctx, name, nil, pulumi.URN_(urn)) + r = &VolumeAttachment{} case "kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList": - r, err = NewVolumeAttachmentList(ctx, name, nil, pulumi.URN_(urn)) + r = &VolumeAttachmentList{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } diff --git a/sdk/python/pulumi_kubernetes/_utilities.py b/sdk/python/pulumi_kubernetes/_utilities.py index c6f9d28d7c..7d593e916e 100644 --- a/sdk/python/pulumi_kubernetes/_utilities.py +++ b/sdk/python/pulumi_kubernetes/_utilities.py @@ -81,5 +81,37 @@ def get_semver_version(): # their own semver string. return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease) + def get_version(): - return str(get_semver_version()) + return str(get_semver_version()) + + +def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs): + """ + Return the resource args and options given the *args and **kwargs of a resource's + __init__ method. + """ + + resource_args, opts = None, None + + # If the first item is the resource args type, save it and remove it from the args list. + if args and isinstance(args[0], resource_args_type): + resource_args, args = args[0], args[1:] + + # Now look at the first item in the args list again. + # If the first item is the resource options class, save it. + if args and isinstance(args[0], resource_options_type): + opts = args[0] + + # If resource_args is None, see if "args" is in kwargs, and, if so, if it's typed as the + # the resource args type. + if resource_args is None: + a = kwargs.get("args") + if isinstance(a, resource_args_type): + resource_args = a + + # If opts is None, look it up in kwargs. + if opts is None: + opts = kwargs.get("opts") + + return resource_args, opts diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py index d1df52d5d2..b5992ac6ab 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['MutatingWebhookConfiguration'] +__all__ = ['MutatingWebhookConfigurationArgs', 'MutatingWebhookConfiguration'] + +@pulumi.input_type +class MutatingWebhookConfigurationArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]] = None): + """ + The set of arguments for constructing a MutatingWebhookConfiguration resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'MutatingWebhookConfiguration') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if webhooks is not None: + pulumi.set(__self__, "webhooks", webhooks) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def webhooks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]]: + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + return pulumi.get(self, "webhooks") + + @webhooks.setter + def webhooks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]]): + pulumi.set(self, "webhooks", value) class MutatingWebhookConfiguration(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MutatingWebhookArgs']]]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[MutatingWebhookConfigurationArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + + :param str resource_name: The name of the resource. + :param MutatingWebhookConfigurationArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MutatingWebhookConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MutatingWebhookArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py index 1f4967b304..dd4bc6ec2e 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['MutatingWebhookConfigurationList'] +__all__ = ['MutatingWebhookConfigurationListArgs', 'MutatingWebhookConfigurationList'] + +@pulumi.input_type +class MutatingWebhookConfigurationListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a MutatingWebhookConfigurationList resource. + :param pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]] items: List of MutatingWebhookConfiguration. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'MutatingWebhookConfigurationList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]]: + """ + List of MutatingWebhookConfiguration. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class MutatingWebhookConfigurationList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MutatingWebhookConfigurationListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param MutatingWebhookConfigurationListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MutatingWebhookConfigurationListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MutatingWebhookConfigurationArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py index bac7a89504..4ca565478f 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ValidatingWebhookConfiguration'] +__all__ = ['ValidatingWebhookConfigurationArgs', 'ValidatingWebhookConfiguration'] + +@pulumi.input_type +class ValidatingWebhookConfigurationArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]] = None): + """ + The set of arguments for constructing a ValidatingWebhookConfiguration resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ValidatingWebhookConfiguration') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if webhooks is not None: + pulumi.set(__self__, "webhooks", webhooks) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def webhooks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]: + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + return pulumi.get(self, "webhooks") + + @webhooks.setter + def webhooks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]): + pulumi.set(self, "webhooks", value) class ValidatingWebhookConfiguration(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ValidatingWebhookArgs']]]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ValidatingWebhookConfigurationArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + + :param str resource_name: The name of the resource. + :param ValidatingWebhookConfigurationArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ValidatingWebhookConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ValidatingWebhookArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py index 85fbda3e33..e1f16541d0 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ValidatingWebhookConfigurationList'] +__all__ = ['ValidatingWebhookConfigurationListArgs', 'ValidatingWebhookConfigurationList'] + +@pulumi.input_type +class ValidatingWebhookConfigurationListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ValidatingWebhookConfigurationList resource. + :param pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]] items: List of ValidatingWebhookConfiguration. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ValidatingWebhookConfigurationList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]]: + """ + List of ValidatingWebhookConfiguration. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ValidatingWebhookConfigurationList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ValidatingWebhookConfigurationListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param ValidatingWebhookConfigurationListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ValidatingWebhookConfigurationListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ValidatingWebhookConfigurationArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py index 3592b6ec72..2960b976ac 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py index 2249f099db..ec9f2829c7 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py index 327d180872..fdd0e77409 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['MutatingWebhookConfiguration'] +__all__ = ['MutatingWebhookConfigurationArgs', 'MutatingWebhookConfiguration'] + +@pulumi.input_type +class MutatingWebhookConfigurationArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]] = None): + """ + The set of arguments for constructing a MutatingWebhookConfiguration resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'MutatingWebhookConfiguration') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if webhooks is not None: + pulumi.set(__self__, "webhooks", webhooks) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def webhooks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]]: + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + return pulumi.get(self, "webhooks") + + @webhooks.setter + def webhooks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]]): + pulumi.set(self, "webhooks", value) class MutatingWebhookConfiguration(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MutatingWebhookArgs']]]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[MutatingWebhookConfigurationArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. + + :param str resource_name: The name of the resource. + :param MutatingWebhookConfigurationArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MutatingWebhookConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MutatingWebhookArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py index 106f52bc39..3a3ac3bb34 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['MutatingWebhookConfigurationList'] +__all__ = ['MutatingWebhookConfigurationListArgs', 'MutatingWebhookConfigurationList'] + +@pulumi.input_type +class MutatingWebhookConfigurationListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a MutatingWebhookConfigurationList resource. + :param pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]] items: List of MutatingWebhookConfiguration. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'MutatingWebhookConfigurationList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]]: + """ + List of MutatingWebhookConfiguration. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class MutatingWebhookConfigurationList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MutatingWebhookConfigurationListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param MutatingWebhookConfigurationListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MutatingWebhookConfigurationListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MutatingWebhookConfigurationArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py index 00aea755e2..29096abf99 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ValidatingWebhookConfiguration'] +__all__ = ['ValidatingWebhookConfigurationArgs', 'ValidatingWebhookConfiguration'] + +@pulumi.input_type +class ValidatingWebhookConfigurationArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]] = None): + """ + The set of arguments for constructing a ValidatingWebhookConfiguration resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ValidatingWebhookConfiguration') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if webhooks is not None: + pulumi.set(__self__, "webhooks", webhooks) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def webhooks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]: + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + return pulumi.get(self, "webhooks") + + @webhooks.setter + def webhooks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]): + pulumi.set(self, "webhooks", value) class ValidatingWebhookConfiguration(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ValidatingWebhookArgs']]]] webhooks: Webhooks is a list of webhooks and the affected resources and operations. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ValidatingWebhookConfigurationArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. + + :param str resource_name: The name of the resource. + :param ValidatingWebhookConfigurationArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ValidatingWebhookConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + webhooks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ValidatingWebhookArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py index 20f46037f2..722969a7e4 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ValidatingWebhookConfigurationList'] +__all__ = ['ValidatingWebhookConfigurationListArgs', 'ValidatingWebhookConfigurationList'] + +@pulumi.input_type +class ValidatingWebhookConfigurationListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ValidatingWebhookConfigurationList resource. + :param pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]] items: List of ValidatingWebhookConfiguration. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ValidatingWebhookConfigurationList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]]: + """ + List of ValidatingWebhookConfiguration. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ValidatingWebhookConfigurationList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ValidatingWebhookConfigurationListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param ValidatingWebhookConfigurationListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ValidatingWebhookConfigurationListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ValidatingWebhookConfigurationArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py index 0995e3b81b..57cd64ff8e 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py index 47c18229c6..50a404d874 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py index 81f3d23491..597680bab7 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CustomResourceDefinition'] +__all__ = ['CustomResourceDefinitionArgs', 'CustomResourceDefinition'] + +@pulumi.input_type +class CustomResourceDefinitionArgs: + def __init__(__self__, *, + spec: pulumi.Input['CustomResourceDefinitionSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CustomResourceDefinition resource. + :param pulumi.Input['CustomResourceDefinitionSpecArgs'] spec: spec describes how the user wants the resources to appear + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiextensions.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CustomResourceDefinition') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CustomResourceDefinitionSpecArgs']: + """ + spec describes how the user wants the resources to appear + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CustomResourceDefinitionSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CustomResourceDefinition(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['CustomResourceDefinitionSpecArgs']] spec: spec describes how the user wants the resources to appear """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CustomResourceDefinitionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + + :param str resource_name: The name of the resource. + :param CustomResourceDefinitionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CustomResourceDefinitionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CustomResourceDefinitionSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py index 6471e31cf6..bf0d966932 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CustomResourceDefinitionList'] +__all__ = ['CustomResourceDefinitionListArgs', 'CustomResourceDefinitionList'] + +@pulumi.input_type +class CustomResourceDefinitionListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CustomResourceDefinitionList resource. + :param pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]] items: items list individual CustomResourceDefinition objects + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiextensions.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CustomResourceDefinitionList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]]: + """ + items list individual CustomResourceDefinition objects + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CustomResourceDefinitionList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CustomResourceDefinitionArgs']]]] items: items list individual CustomResourceDefinition objects :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CustomResourceDefinitionListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + + :param str resource_name: The name of the resource. + :param CustomResourceDefinitionListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CustomResourceDefinitionListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CustomResourceDefinitionArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py index fc2f7d041c..1812a81198 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py index fd286fe310..b6b9107609 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py index 7bbdf6d2a3..147406bec3 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CustomResourceDefinition'] +__all__ = ['CustomResourceDefinitionArgs', 'CustomResourceDefinition'] + +@pulumi.input_type +class CustomResourceDefinitionArgs: + def __init__(__self__, *, + spec: pulumi.Input['CustomResourceDefinitionSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CustomResourceDefinition resource. + :param pulumi.Input['CustomResourceDefinitionSpecArgs'] spec: spec describes how the user wants the resources to appear + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiextensions.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CustomResourceDefinition') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CustomResourceDefinitionSpecArgs']: + """ + spec describes how the user wants the resources to appear + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CustomResourceDefinitionSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CustomResourceDefinition(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['CustomResourceDefinitionSpecArgs']] spec: spec describes how the user wants the resources to appear """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CustomResourceDefinitionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. + + :param str resource_name: The name of the resource. + :param CustomResourceDefinitionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CustomResourceDefinitionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CustomResourceDefinitionSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py index 7e56a2b27a..c4845e2ae4 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CustomResourceDefinitionList'] +__all__ = ['CustomResourceDefinitionListArgs', 'CustomResourceDefinitionList'] + +@pulumi.input_type +class CustomResourceDefinitionListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CustomResourceDefinitionList resource. + :param pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]] items: items list individual CustomResourceDefinition objects + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiextensions.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CustomResourceDefinitionList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]]: + """ + items list individual CustomResourceDefinition objects + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CustomResourceDefinitionList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CustomResourceDefinitionArgs']]]] items: items list individual CustomResourceDefinition objects :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CustomResourceDefinitionListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + + :param str resource_name: The name of the resource. + :param CustomResourceDefinitionListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CustomResourceDefinitionListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CustomResourceDefinitionArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py index e648ece79f..515044cd6c 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py index aff80844d1..60c37ae3d2 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py index 64bbb0d6fb..0b39e1a5cc 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py @@ -5,16 +5,84 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['APIService'] +__all__ = ['APIServiceArgs', 'APIService'] + +@pulumi.input_type +class APIServiceArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['APIServiceSpecArgs']] = None): + """ + The set of arguments for constructing a APIService resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['APIServiceSpecArgs'] spec: Spec contains information for locating and communicating with a server + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiregistration.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'APIService') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['APIServiceSpecArgs']]: + """ + Spec contains information for locating and communicating with a server + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['APIServiceSpecArgs']]): + pulumi.set(self, "spec", value) class APIService(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +102,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['APIServiceSpecArgs']] spec: Spec contains information for locating and communicating with a server """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[APIServiceArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + + :param str resource_name: The name of the resource. + :param APIServiceArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(APIServiceArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['APIServiceSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py index 65229d5875..7b1d3fafd3 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py @@ -5,16 +5,79 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['APIServiceList'] +__all__ = ['APIServiceListArgs', 'APIServiceList'] + +@pulumi.input_type +class APIServiceListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a APIServiceList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiregistration.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'APIServiceList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class APIServiceList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -33,6 +96,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: APIServiceListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + APIServiceList is a list of APIService objects. + + :param str resource_name: The name of the resource. + :param APIServiceListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(APIServiceListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['APIServiceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py index 4086d9ff50..ac4d34866a 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py index bdde1d958d..1357e27b3f 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py index 228a53daa6..94047301f4 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py @@ -5,16 +5,84 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['APIService'] +__all__ = ['APIServiceArgs', 'APIService'] + +@pulumi.input_type +class APIServiceArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['APIServiceSpecArgs']] = None): + """ + The set of arguments for constructing a APIService resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['APIServiceSpecArgs'] spec: Spec contains information for locating and communicating with a server + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiregistration.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'APIService') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['APIServiceSpecArgs']]: + """ + Spec contains information for locating and communicating with a server + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['APIServiceSpecArgs']]): + pulumi.set(self, "spec", value) class APIService(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +102,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['APIServiceSpecArgs']] spec: Spec contains information for locating and communicating with a server """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[APIServiceArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + + :param str resource_name: The name of the resource. + :param APIServiceArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(APIServiceArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['APIServiceSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py index 2d7f71e872..710ca83959 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py @@ -5,16 +5,79 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['APIServiceList'] +__all__ = ['APIServiceListArgs', 'APIServiceList'] + +@pulumi.input_type +class APIServiceListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a APIServiceList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apiregistration.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'APIServiceList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class APIServiceList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -33,6 +96,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: APIServiceListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + APIServiceList is a list of APIService objects. + + :param str resource_name: The name of the resource. + :param APIServiceListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(APIServiceListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['APIServiceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py index f4f2fd98b4..e5f510147d 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py index 1c8a1ecc23..72a71b89f8 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py index 521f602142..b6371f6955 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py @@ -5,14 +5,101 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['ControllerRevision'] +__all__ = ['ControllerRevisionArgs', 'ControllerRevision'] + +@pulumi.input_type +class ControllerRevisionArgs: + def __init__(__self__, *, + revision: pulumi.Input[int], + 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): + """ + The set of arguments for constructing a ControllerRevision resource. + :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param Any data: Data is the serialized representation of the state. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "revision", revision) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if data is not None: + pulumi.set(__self__, "data", data) + if kind is not None: + pulumi.set(__self__, "kind", 'ControllerRevision') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def revision(self) -> pulumi.Input[int]: + """ + Revision indicates the revision of the state represented by Data. + """ + return pulumi.get(self, "revision") + + @revision.setter + def revision(self, value: pulumi.Input[int]): + pulumi.set(self, "revision", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def data(self) -> Optional[Any]: + """ + Data is the serialized representation of the state. + """ + return pulumi.get(self, "data") + + @data.setter + def data(self, value: Optional[Any]): + pulumi.set(self, "data", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class ControllerRevision(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +122,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ControllerRevisionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + :param str resource_name: The name of the resource. + :param ControllerRevisionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ControllerRevisionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + data: Optional[Any] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + revision: Optional[pulumi.Input[int]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py index 221e9a3869..c1760da730 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ControllerRevisionList'] +__all__ = ['ControllerRevisionListArgs', 'ControllerRevisionList'] + +@pulumi.input_type +class ControllerRevisionListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ControllerRevisionList resource. + :param pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]] items: Items is the list of ControllerRevisions + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ControllerRevisionList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]: + """ + Items is the list of ControllerRevisions + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ControllerRevisionList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ControllerRevisionListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + :param str resource_name: The name of the resource. + :param ControllerRevisionListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ControllerRevisionListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ControllerRevisionArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py index 86bd1b98da..356225aaae 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DaemonSet'] +__all__ = ['DaemonSetArgs', 'DaemonSet'] + +@pulumi.input_type +class DaemonSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DaemonSetSpecArgs']] = None): + """ + The set of arguments for constructing a DaemonSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['DaemonSetSpecArgs'] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'DaemonSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DaemonSetSpecArgs']]: + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DaemonSetSpecArgs']]): + pulumi.set(self, "spec", value) class DaemonSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['DaemonSetSpecArgs']] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DaemonSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DaemonSet represents the configuration of a daemon set. + + :param str resource_name: The name of the resource. + :param DaemonSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DaemonSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DaemonSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py index ef5e8eadeb..834f8f61bb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DaemonSetList'] +__all__ = ['DaemonSetListArgs', 'DaemonSetList'] + +@pulumi.input_type +class DaemonSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DaemonSetList resource. + :param pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]] items: A list of daemon sets. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'DaemonSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]: + """ + A list of daemon sets. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DaemonSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DaemonSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DaemonSetList is a collection of daemon sets. + + :param str resource_name: The name of the resource. + :param DaemonSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DaemonSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DaemonSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py index f78393d9d5..002416c239 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Deployment'] +__all__ = ['DeploymentArgs', 'Deployment'] + +@pulumi.input_type +class DeploymentArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None): + """ + The set of arguments for constructing a Deployment resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. + :param pulumi.Input['DeploymentSpecArgs'] spec: Specification of the desired behavior of the Deployment. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Deployment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DeploymentSpecArgs']]: + """ + Specification of the desired behavior of the Deployment. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DeploymentSpecArgs']]): + pulumi.set(self, "spec", value) class Deployment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -58,6 +130,59 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. :param pulumi.Input[pulumi.InputType['DeploymentSpecArgs']] spec: Specification of the desired behavior of the Deployment. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DeploymentArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param DeploymentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DeploymentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py index 31d4888b8c..99e114874b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DeploymentList'] +__all__ = ['DeploymentListArgs', 'DeploymentList'] + +@pulumi.input_type +class DeploymentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DeploymentList resource. + :param pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]] items: Items is the list of Deployments. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'DeploymentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]: + """ + Items is the list of Deployments. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DeploymentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DeploymentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param DeploymentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py index 958aa22928..fe07ea6017 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicaSet'] +__all__ = ['ReplicaSetArgs', 'ReplicaSet'] + +@pulumi.input_type +class ReplicaSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['ReplicaSetSpecArgs']] = None): + """ + The set of arguments for constructing a ReplicaSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['ReplicaSetSpecArgs'] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicaSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['ReplicaSetSpecArgs']]: + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['ReplicaSetSpecArgs']]): + pulumi.set(self, "spec", value) class ReplicaSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ReplicaSetSpecArgs']] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ReplicaSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + :param str resource_name: The name of the resource. + :param ReplicaSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicaSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['ReplicaSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py index 1ad7b799cb..2c2aca9340 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicaSetList'] +__all__ = ['ReplicaSetListArgs', 'ReplicaSetList'] + +@pulumi.input_type +class ReplicaSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ReplicaSetList resource. + :param pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicaSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]: + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ReplicaSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ReplicaSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicaSetList is a collection of ReplicaSets. + + :param str resource_name: The name of the resource. + :param ReplicaSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicaSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ReplicaSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py index 63598924fb..d5ec0040d1 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py @@ -5,17 +5,85 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StatefulSet'] +__all__ = ['StatefulSetArgs', 'StatefulSet'] + +@pulumi.input_type +class StatefulSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['StatefulSetSpecArgs']] = None): + """ + The set of arguments for constructing a StatefulSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['StatefulSetSpecArgs'] spec: Spec defines the desired identities of pods in this set. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'StatefulSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['StatefulSetSpecArgs']]: + """ + Spec defines the desired identities of pods in this set. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['StatefulSetSpecArgs']]): + pulumi.set(self, "spec", value) class StatefulSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -51,6 +119,53 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['StatefulSetSpecArgs']] spec: Spec defines the desired identities of pods in this set. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[StatefulSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param StatefulSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatefulSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['StatefulSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py index 992f102c61..54397847c6 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py @@ -5,17 +5,80 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StatefulSetList'] +__all__ = ['StatefulSetListArgs', 'StatefulSetList'] + +@pulumi.input_type +class StatefulSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a StatefulSetList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'StatefulSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class StatefulSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +97,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StatefulSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StatefulSetList is a collection of StatefulSets. + + :param str resource_name: The name of the resource. + :param StatefulSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatefulSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StatefulSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py b/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py index b67eeb2b91..2dea9b62bb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apps/v1/outputs.py b/sdk/python/pulumi_kubernetes/apps/v1/outputs.py index 158bc3745d..13ac9779ee 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py index d2d18b55e0..68a18ea379 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py @@ -5,14 +5,101 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['ControllerRevision'] +__all__ = ['ControllerRevisionArgs', 'ControllerRevision'] + +@pulumi.input_type +class ControllerRevisionArgs: + def __init__(__self__, *, + revision: pulumi.Input[int], + 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): + """ + The set of arguments for constructing a ControllerRevision resource. + :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param Any data: Data is the serialized representation of the state. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "revision", revision) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta1') + if data is not None: + pulumi.set(__self__, "data", data) + if kind is not None: + pulumi.set(__self__, "kind", 'ControllerRevision') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def revision(self) -> pulumi.Input[int]: + """ + Revision indicates the revision of the state represented by Data. + """ + return pulumi.get(self, "revision") + + @revision.setter + def revision(self, value: pulumi.Input[int]): + pulumi.set(self, "revision", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def data(self) -> Optional[Any]: + """ + Data is the serialized representation of the state. + """ + return pulumi.get(self, "data") + + @data.setter + def data(self, value: Optional[Any]): + pulumi.set(self, "data", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class ControllerRevision(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +122,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ControllerRevisionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + :param str resource_name: The name of the resource. + :param ControllerRevisionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ControllerRevisionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + data: Optional[Any] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + revision: Optional[pulumi.Input[int]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py index 0bcc79afbb..c500d26c89 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ControllerRevisionList'] +__all__ = ['ControllerRevisionListArgs', 'ControllerRevisionList'] + +@pulumi.input_type +class ControllerRevisionListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ControllerRevisionList resource. + :param pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]] items: Items is the list of ControllerRevisions + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ControllerRevisionList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]: + """ + Items is the list of ControllerRevisions + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ControllerRevisionList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ControllerRevisionListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + :param str resource_name: The name of the resource. + :param ControllerRevisionListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ControllerRevisionListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ControllerRevisionArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py index 2b6f42d368..433a20db38 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Deployment'] +__all__ = ['DeploymentArgs', 'Deployment'] + +@pulumi.input_type +class DeploymentArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None): + """ + The set of arguments for constructing a Deployment resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. + :param pulumi.Input['DeploymentSpecArgs'] spec: Specification of the desired behavior of the Deployment. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'Deployment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DeploymentSpecArgs']]: + """ + Specification of the desired behavior of the Deployment. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DeploymentSpecArgs']]): + pulumi.set(self, "spec", value) class Deployment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -58,6 +130,59 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. :param pulumi.Input[pulumi.InputType['DeploymentSpecArgs']] spec: Specification of the desired behavior of the Deployment. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DeploymentArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param DeploymentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DeploymentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py index 57742e0b77..b0f26cfe5f 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DeploymentList'] +__all__ = ['DeploymentListArgs', 'DeploymentList'] + +@pulumi.input_type +class DeploymentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DeploymentList resource. + :param pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]] items: Items is the list of Deployments. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'DeploymentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]: + """ + Items is the list of Deployments. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DeploymentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DeploymentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param DeploymentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py index 4777501710..21bb670ada 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py @@ -5,17 +5,85 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StatefulSet'] +__all__ = ['StatefulSetArgs', 'StatefulSet'] + +@pulumi.input_type +class StatefulSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['StatefulSetSpecArgs']] = None): + """ + The set of arguments for constructing a StatefulSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['StatefulSetSpecArgs'] spec: Spec defines the desired identities of pods in this set. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'StatefulSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['StatefulSetSpecArgs']]: + """ + Spec defines the desired identities of pods in this set. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['StatefulSetSpecArgs']]): + pulumi.set(self, "spec", value) class StatefulSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -51,6 +119,53 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['StatefulSetSpecArgs']] spec: Spec defines the desired identities of pods in this set. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[StatefulSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param StatefulSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatefulSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['StatefulSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py index 942eebffd3..2533135fa5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py @@ -5,17 +5,80 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StatefulSetList'] +__all__ = ['StatefulSetListArgs', 'StatefulSetList'] + +@pulumi.input_type +class StatefulSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a StatefulSetList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'StatefulSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class StatefulSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +97,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StatefulSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StatefulSetList is a collection of StatefulSets. + + :param str resource_name: The name of the resource. + :param StatefulSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatefulSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StatefulSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py index 48462c4e3f..a1054adbb4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py index 5c7a56b1d2..5c3303a330 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py index 051c45350b..07a6601123 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py @@ -5,14 +5,101 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['ControllerRevision'] +__all__ = ['ControllerRevisionArgs', 'ControllerRevision'] + +@pulumi.input_type +class ControllerRevisionArgs: + def __init__(__self__, *, + revision: pulumi.Input[int], + 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): + """ + The set of arguments for constructing a ControllerRevision resource. + :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param Any data: Data is the serialized representation of the state. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "revision", revision) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if data is not None: + pulumi.set(__self__, "data", data) + if kind is not None: + pulumi.set(__self__, "kind", 'ControllerRevision') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def revision(self) -> pulumi.Input[int]: + """ + Revision indicates the revision of the state represented by Data. + """ + return pulumi.get(self, "revision") + + @revision.setter + def revision(self, value: pulumi.Input[int]): + pulumi.set(self, "revision", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def data(self) -> Optional[Any]: + """ + Data is the serialized representation of the state. + """ + return pulumi.get(self, "data") + + @data.setter + def data(self, value: Optional[Any]): + pulumi.set(self, "data", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class ControllerRevision(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +122,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ControllerRevisionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + :param str resource_name: The name of the resource. + :param ControllerRevisionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ControllerRevisionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + data: Optional[Any] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + revision: Optional[pulumi.Input[int]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py index f7920a5a40..24b774cb19 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ControllerRevisionList'] +__all__ = ['ControllerRevisionListArgs', 'ControllerRevisionList'] + +@pulumi.input_type +class ControllerRevisionListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ControllerRevisionList resource. + :param pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]] items: Items is the list of ControllerRevisions + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'ControllerRevisionList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]: + """ + Items is the list of ControllerRevisions + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ControllerRevisionList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ControllerRevisionListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + :param str resource_name: The name of the resource. + :param ControllerRevisionListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ControllerRevisionListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ControllerRevisionArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py index 600cb920cd..e39c9b7e44 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DaemonSet'] +__all__ = ['DaemonSetArgs', 'DaemonSet'] + +@pulumi.input_type +class DaemonSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DaemonSetSpecArgs']] = None): + """ + The set of arguments for constructing a DaemonSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['DaemonSetSpecArgs'] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'DaemonSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DaemonSetSpecArgs']]: + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DaemonSetSpecArgs']]): + pulumi.set(self, "spec", value) class DaemonSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['DaemonSetSpecArgs']] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DaemonSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DaemonSet represents the configuration of a daemon set. + + :param str resource_name: The name of the resource. + :param DaemonSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DaemonSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DaemonSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py index 62628ce206..a3194754ed 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DaemonSetList'] +__all__ = ['DaemonSetListArgs', 'DaemonSetList'] + +@pulumi.input_type +class DaemonSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DaemonSetList resource. + :param pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]] items: A list of daemon sets. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'DaemonSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]: + """ + A list of daemon sets. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DaemonSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DaemonSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DaemonSetList is a collection of daemon sets. + + :param str resource_name: The name of the resource. + :param DaemonSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DaemonSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DaemonSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py index bf84a312ef..61e0e6ffae 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Deployment'] +__all__ = ['DeploymentArgs', 'Deployment'] + +@pulumi.input_type +class DeploymentArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None): + """ + The set of arguments for constructing a Deployment resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. + :param pulumi.Input['DeploymentSpecArgs'] spec: Specification of the desired behavior of the Deployment. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'Deployment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DeploymentSpecArgs']]: + """ + Specification of the desired behavior of the Deployment. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DeploymentSpecArgs']]): + pulumi.set(self, "spec", value) class Deployment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -58,6 +130,59 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. :param pulumi.Input[pulumi.InputType['DeploymentSpecArgs']] spec: Specification of the desired behavior of the Deployment. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DeploymentArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param DeploymentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DeploymentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py index 0617e98df1..3f8c008826 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DeploymentList'] +__all__ = ['DeploymentListArgs', 'DeploymentList'] + +@pulumi.input_type +class DeploymentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DeploymentList resource. + :param pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]] items: Items is the list of Deployments. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'DeploymentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]: + """ + Items is the list of Deployments. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DeploymentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DeploymentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param DeploymentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py index 9932225d7a..5f48ac43bb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicaSet'] +__all__ = ['ReplicaSetArgs', 'ReplicaSet'] + +@pulumi.input_type +class ReplicaSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['ReplicaSetSpecArgs']] = None): + """ + The set of arguments for constructing a ReplicaSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['ReplicaSetSpecArgs'] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicaSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['ReplicaSetSpecArgs']]: + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['ReplicaSetSpecArgs']]): + pulumi.set(self, "spec", value) class ReplicaSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ReplicaSetSpecArgs']] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ReplicaSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + :param str resource_name: The name of the resource. + :param ReplicaSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicaSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['ReplicaSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py index e6233e97ea..fc620ebef3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicaSetList'] +__all__ = ['ReplicaSetListArgs', 'ReplicaSetList'] + +@pulumi.input_type +class ReplicaSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ReplicaSetList resource. + :param pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicaSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]: + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ReplicaSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ReplicaSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicaSetList is a collection of ReplicaSets. + + :param str resource_name: The name of the resource. + :param ReplicaSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicaSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ReplicaSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py index 7591629ef0..fbae9f77d2 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py @@ -5,17 +5,85 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StatefulSet'] +__all__ = ['StatefulSetArgs', 'StatefulSet'] + +@pulumi.input_type +class StatefulSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['StatefulSetSpecArgs']] = None): + """ + The set of arguments for constructing a StatefulSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['StatefulSetSpecArgs'] spec: Spec defines the desired identities of pods in this set. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'StatefulSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['StatefulSetSpecArgs']]: + """ + Spec defines the desired identities of pods in this set. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['StatefulSetSpecArgs']]): + pulumi.set(self, "spec", value) class StatefulSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -51,6 +119,53 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['StatefulSetSpecArgs']] spec: Spec defines the desired identities of pods in this set. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[StatefulSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param StatefulSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatefulSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['StatefulSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py index 8d25498244..efc1044e7b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py @@ -5,17 +5,80 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StatefulSetList'] +__all__ = ['StatefulSetListArgs', 'StatefulSetList'] + +@pulumi.input_type +class StatefulSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a StatefulSetList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'apps/v1beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'StatefulSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class StatefulSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +97,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StatefulSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StatefulSetList is a collection of StatefulSets. + + :param str resource_name: The name of the resource. + :param StatefulSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatefulSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StatefulSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py index ee2d7c51b7..9670fd1dc7 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py index bbb3c45de6..7d493017fe 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py index e0534a51e7..69d2777988 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py @@ -5,16 +5,84 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['AuditSink'] +__all__ = ['AuditSinkArgs', 'AuditSink'] + +@pulumi.input_type +class AuditSinkArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['AuditSinkSpecArgs']] = None): + """ + The set of arguments for constructing a AuditSink resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['AuditSinkSpecArgs'] spec: Spec defines the audit configuration spec + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'auditregistration.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'AuditSink') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['AuditSinkSpecArgs']]: + """ + Spec defines the audit configuration spec + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['AuditSinkSpecArgs']]): + pulumi.set(self, "spec", value) class AuditSink(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +102,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['AuditSinkSpecArgs']] spec: Spec defines the audit configuration spec """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[AuditSinkArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + AuditSink represents a cluster level audit sink + + :param str resource_name: The name of the resource. + :param AuditSinkArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AuditSinkArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['AuditSinkSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py index a05d20f0e0..f4acfa9ef6 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['AuditSinkList'] +__all__ = ['AuditSinkListArgs', 'AuditSinkList'] + +@pulumi.input_type +class AuditSinkListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['AuditSinkArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a AuditSinkList resource. + :param pulumi.Input[Sequence[pulumi.Input['AuditSinkArgs']]] items: List of audit configurations. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'auditregistration.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'AuditSinkList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['AuditSinkArgs']]]: + """ + List of audit configurations. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['AuditSinkArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class AuditSinkList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AuditSinkArgs']]]] items: List of audit configurations. :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AuditSinkListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + AuditSinkList is a list of AuditSink items. + + :param str resource_name: The name of the resource. + :param AuditSinkListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AuditSinkListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AuditSinkArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py index cb26f19b30..14b9b7706b 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py index 4c1c40d606..0715e9ec3b 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py index 3f740ea7d9..cccf849368 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py @@ -5,16 +5,79 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['TokenRequest'] +__all__ = ['TokenRequestArgs', 'TokenRequest'] + +@pulumi.input_type +class TokenRequestArgs: + def __init__(__self__, *, + spec: pulumi.Input['TokenRequestSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a TokenRequest resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authentication.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'TokenRequest') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['TokenRequestSpecArgs']: + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['TokenRequestSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class TokenRequest(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -33,6 +96,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TokenRequestArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + TokenRequest requests a token for a given service account. + + :param str resource_name: The name of the resource. + :param TokenRequestArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TokenRequestArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['TokenRequestSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py index 0fd5520fd5..1dcf646e79 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['TokenReview'] +__all__ = ['TokenReviewArgs', 'TokenReview'] + +@pulumi.input_type +class TokenReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['TokenReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a TokenReview resource. + :param pulumi.Input['TokenReviewSpecArgs'] spec: Spec holds information about the request being evaluated + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authentication.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'TokenReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['TokenReviewSpecArgs']: + """ + Spec holds information about the request being evaluated + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['TokenReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class TokenReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['TokenReviewSpecArgs']] spec: Spec holds information about the request being evaluated """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TokenReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + + :param str resource_name: The name of the resource. + :param TokenReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TokenReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['TokenReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/_inputs.py b/sdk/python/pulumi_kubernetes/authentication/v1/_inputs.py index 3c89a8f4e3..092b47cf2d 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables __all__ = [ diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/outputs.py b/sdk/python/pulumi_kubernetes/authentication/v1/outputs.py index cc0075ec9a..a95097da08 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py index 47db1add3a..33650de8d8 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['TokenReview'] +__all__ = ['TokenReviewArgs', 'TokenReview'] + +@pulumi.input_type +class TokenReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['TokenReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a TokenReview resource. + :param pulumi.Input['TokenReviewSpecArgs'] spec: Spec holds information about the request being evaluated + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authentication.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'TokenReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['TokenReviewSpecArgs']: + """ + Spec holds information about the request being evaluated + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['TokenReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class TokenReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['TokenReviewSpecArgs']] spec: Spec holds information about the request being evaluated """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TokenReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + + :param str resource_name: The name of the resource. + :param TokenReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TokenReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['TokenReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/_inputs.py index 51d347c146..f106cba23e 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables __all__ = [ diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/outputs.py index 3387ce4888..1f5eb5dc4a 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py index 3372cfd418..bf4e0aefdb 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['LocalSubjectAccessReview'] +__all__ = ['LocalSubjectAccessReviewArgs', 'LocalSubjectAccessReview'] + +@pulumi.input_type +class LocalSubjectAccessReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SubjectAccessReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a LocalSubjectAccessReview resource. + :param pulumi.Input['SubjectAccessReviewSpecArgs'] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'LocalSubjectAccessReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SubjectAccessReviewSpecArgs']: + """ + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SubjectAccessReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class LocalSubjectAccessReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LocalSubjectAccessReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + + :param str resource_name: The name of the resource. + :param LocalSubjectAccessReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LocalSubjectAccessReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py index fad330be68..e3a37d636d 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SelfSubjectAccessReview'] +__all__ = ['SelfSubjectAccessReviewArgs', 'SelfSubjectAccessReview'] + +@pulumi.input_type +class SelfSubjectAccessReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SelfSubjectAccessReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a SelfSubjectAccessReview resource. + :param pulumi.Input['SelfSubjectAccessReviewSpecArgs'] spec: Spec holds information about the request being evaluated. user and groups must be empty + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'SelfSubjectAccessReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SelfSubjectAccessReviewSpecArgs']: + """ + Spec holds information about the request being evaluated. user and groups must be empty + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SelfSubjectAccessReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class SelfSubjectAccessReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SelfSubjectAccessReviewSpecArgs']] spec: Spec holds information about the request being evaluated. user and groups must be empty """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SelfSubjectAccessReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + + :param str resource_name: The name of the resource. + :param SelfSubjectAccessReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SelfSubjectAccessReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SelfSubjectAccessReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py index 68aa150037..f7e1a9d3b7 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SelfSubjectRulesReview'] +__all__ = ['SelfSubjectRulesReviewArgs', 'SelfSubjectRulesReview'] + +@pulumi.input_type +class SelfSubjectRulesReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SelfSubjectRulesReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a SelfSubjectRulesReview resource. + :param pulumi.Input['SelfSubjectRulesReviewSpecArgs'] spec: Spec holds information about the request being evaluated. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'SelfSubjectRulesReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SelfSubjectRulesReviewSpecArgs']: + """ + Spec holds information about the request being evaluated. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SelfSubjectRulesReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class SelfSubjectRulesReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SelfSubjectRulesReviewSpecArgs']] spec: Spec holds information about the request being evaluated. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SelfSubjectRulesReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + + :param str resource_name: The name of the resource. + :param SelfSubjectRulesReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SelfSubjectRulesReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SelfSubjectRulesReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py index db41439c28..b341e4cb6f 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SubjectAccessReview'] +__all__ = ['SubjectAccessReviewArgs', 'SubjectAccessReview'] + +@pulumi.input_type +class SubjectAccessReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SubjectAccessReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a SubjectAccessReview resource. + :param pulumi.Input['SubjectAccessReviewSpecArgs'] spec: Spec holds information about the request being evaluated + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'SubjectAccessReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SubjectAccessReviewSpecArgs']: + """ + Spec holds information about the request being evaluated + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SubjectAccessReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class SubjectAccessReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']] spec: Spec holds information about the request being evaluated """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SubjectAccessReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + + :param str resource_name: The name of the resource. + :param SubjectAccessReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SubjectAccessReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/_inputs.py b/sdk/python/pulumi_kubernetes/authorization/v1/_inputs.py index eaf4eec2f8..9a878543f7 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables __all__ = [ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/outputs.py b/sdk/python/pulumi_kubernetes/authorization/v1/outputs.py index a40397d9c1..7540779a24 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py index 2fe15d2c23..1c9f0b88ba 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['LocalSubjectAccessReview'] +__all__ = ['LocalSubjectAccessReviewArgs', 'LocalSubjectAccessReview'] + +@pulumi.input_type +class LocalSubjectAccessReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SubjectAccessReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a LocalSubjectAccessReview resource. + :param pulumi.Input['SubjectAccessReviewSpecArgs'] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'LocalSubjectAccessReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SubjectAccessReviewSpecArgs']: + """ + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SubjectAccessReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class LocalSubjectAccessReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LocalSubjectAccessReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + + :param str resource_name: The name of the resource. + :param LocalSubjectAccessReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LocalSubjectAccessReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py index 874c0524cf..a22e5dfceb 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SelfSubjectAccessReview'] +__all__ = ['SelfSubjectAccessReviewArgs', 'SelfSubjectAccessReview'] + +@pulumi.input_type +class SelfSubjectAccessReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SelfSubjectAccessReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a SelfSubjectAccessReview resource. + :param pulumi.Input['SelfSubjectAccessReviewSpecArgs'] spec: Spec holds information about the request being evaluated. user and groups must be empty + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'SelfSubjectAccessReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SelfSubjectAccessReviewSpecArgs']: + """ + Spec holds information about the request being evaluated. user and groups must be empty + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SelfSubjectAccessReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class SelfSubjectAccessReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SelfSubjectAccessReviewSpecArgs']] spec: Spec holds information about the request being evaluated. user and groups must be empty """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SelfSubjectAccessReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + + :param str resource_name: The name of the resource. + :param SelfSubjectAccessReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SelfSubjectAccessReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SelfSubjectAccessReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py index 9a63ad0632..2636a0406e 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SelfSubjectRulesReview'] +__all__ = ['SelfSubjectRulesReviewArgs', 'SelfSubjectRulesReview'] + +@pulumi.input_type +class SelfSubjectRulesReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SelfSubjectRulesReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a SelfSubjectRulesReview resource. + :param pulumi.Input['SelfSubjectRulesReviewSpecArgs'] spec: Spec holds information about the request being evaluated. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'SelfSubjectRulesReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SelfSubjectRulesReviewSpecArgs']: + """ + Spec holds information about the request being evaluated. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SelfSubjectRulesReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class SelfSubjectRulesReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SelfSubjectRulesReviewSpecArgs']] spec: Spec holds information about the request being evaluated. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SelfSubjectRulesReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + + :param str resource_name: The name of the resource. + :param SelfSubjectRulesReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SelfSubjectRulesReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SelfSubjectRulesReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py index c5228409bc..25ad9edaaf 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SubjectAccessReview'] +__all__ = ['SubjectAccessReviewArgs', 'SubjectAccessReview'] + +@pulumi.input_type +class SubjectAccessReviewArgs: + def __init__(__self__, *, + spec: pulumi.Input['SubjectAccessReviewSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a SubjectAccessReview resource. + :param pulumi.Input['SubjectAccessReviewSpecArgs'] spec: Spec holds information about the request being evaluated + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'SubjectAccessReview') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['SubjectAccessReviewSpecArgs']: + """ + Spec holds information about the request being evaluated + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['SubjectAccessReviewSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class SubjectAccessReview(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']] spec: Spec holds information about the request being evaluated """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SubjectAccessReviewArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + + :param str resource_name: The name of the resource. + :param SubjectAccessReviewArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SubjectAccessReviewArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['SubjectAccessReviewSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/_inputs.py index 2902fc59d5..06701da6e1 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables __all__ = [ diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py index eb8d38c04a..bff2bdf686 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py index 14988a7b4d..0e0afdb9f4 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['HorizontalPodAutoscaler'] +__all__ = ['HorizontalPodAutoscalerArgs', 'HorizontalPodAutoscaler'] + +@pulumi.input_type +class HorizontalPodAutoscalerArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None): + """ + The set of arguments for constructing a HorizontalPodAutoscaler resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['HorizontalPodAutoscalerSpecArgs'] spec: behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'autoscaling/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'HorizontalPodAutoscaler') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']]: + """ + behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']]): + pulumi.set(self, "spec", value) class HorizontalPodAutoscaler(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerSpecArgs']] spec: behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[HorizontalPodAutoscalerArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + configuration of a horizontal pod autoscaler. + + :param str resource_name: The name of the resource. + :param HorizontalPodAutoscalerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HorizontalPodAutoscalerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py index 10d316ca20..a8137ef43e 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['HorizontalPodAutoscalerList'] +__all__ = ['HorizontalPodAutoscalerListArgs', 'HorizontalPodAutoscalerList'] + +@pulumi.input_type +class HorizontalPodAutoscalerListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a HorizontalPodAutoscalerList resource. + :param pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]] items: list of horizontal pod autoscaler objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'autoscaling/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'HorizontalPodAutoscalerList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]: + """ + list of horizontal pod autoscaler objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class HorizontalPodAutoscalerList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: HorizontalPodAutoscalerListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + list of horizontal pod autoscaler objects. + + :param str resource_name: The name of the resource. + :param HorizontalPodAutoscalerListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HorizontalPodAutoscalerListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py index 23d7252a0c..2fbdb6572a 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py index 4170d00b01..9395b45099 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py index b1221ce1c1..8ed2b09921 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['HorizontalPodAutoscaler'] +__all__ = ['HorizontalPodAutoscalerArgs', 'HorizontalPodAutoscaler'] + +@pulumi.input_type +class HorizontalPodAutoscalerArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None): + """ + The set of arguments for constructing a HorizontalPodAutoscaler resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['HorizontalPodAutoscalerSpecArgs'] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'autoscaling/v2beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'HorizontalPodAutoscaler') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']]: + """ + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']]): + pulumi.set(self, "spec", value) class HorizontalPodAutoscaler(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerSpecArgs']] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[HorizontalPodAutoscalerArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + + :param str resource_name: The name of the resource. + :param HorizontalPodAutoscalerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HorizontalPodAutoscalerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py index bf7c4a3154..56f6a19623 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['HorizontalPodAutoscalerList'] +__all__ = ['HorizontalPodAutoscalerListArgs', 'HorizontalPodAutoscalerList'] + +@pulumi.input_type +class HorizontalPodAutoscalerListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a HorizontalPodAutoscalerList resource. + :param pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]] items: items is the list of horizontal pod autoscaler objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: metadata is the standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'autoscaling/v2beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'HorizontalPodAutoscalerList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]: + """ + items is the list of horizontal pod autoscaler objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + metadata is the standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class HorizontalPodAutoscalerList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: metadata is the standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: HorizontalPodAutoscalerListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. + + :param str resource_name: The name of the resource. + :param HorizontalPodAutoscalerListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HorizontalPodAutoscalerListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py index 05015c93fc..8b1a0f8cd5 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py index 8288858f0a..2301f596a0 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py index a69d3892cc..8642a1be34 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['HorizontalPodAutoscaler'] +__all__ = ['HorizontalPodAutoscalerArgs', 'HorizontalPodAutoscaler'] + +@pulumi.input_type +class HorizontalPodAutoscalerArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None): + """ + The set of arguments for constructing a HorizontalPodAutoscaler resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['HorizontalPodAutoscalerSpecArgs'] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'autoscaling/v2beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'HorizontalPodAutoscaler') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']]: + """ + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']]): + pulumi.set(self, "spec", value) class HorizontalPodAutoscaler(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerSpecArgs']] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[HorizontalPodAutoscalerArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + + :param str resource_name: The name of the resource. + :param HorizontalPodAutoscalerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HorizontalPodAutoscalerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py index 9d4cdb4204..1958861f41 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['HorizontalPodAutoscalerList'] +__all__ = ['HorizontalPodAutoscalerListArgs', 'HorizontalPodAutoscalerList'] + +@pulumi.input_type +class HorizontalPodAutoscalerListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a HorizontalPodAutoscalerList resource. + :param pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]] items: items is the list of horizontal pod autoscaler objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: metadata is the standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'autoscaling/v2beta2') + if kind is not None: + pulumi.set(__self__, "kind", 'HorizontalPodAutoscalerList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]: + """ + items is the list of horizontal pod autoscaler objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + metadata is the standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class HorizontalPodAutoscalerList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: metadata is the standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: HorizontalPodAutoscalerListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + + :param str resource_name: The name of the resource. + :param HorizontalPodAutoscalerListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HorizontalPodAutoscalerListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HorizontalPodAutoscalerArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py index ff52c5c059..7bf888c661 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py index 5e13c4630c..9c129efd2b 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py index 7b6e47705c..2126a10848 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['CronJob'] +__all__ = ['CronJobArgs', 'CronJob'] + +@pulumi.input_type +class CronJobArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['CronJobSpecArgs']] = None): + """ + The set of arguments for constructing a CronJob resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['CronJobSpecArgs'] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CronJob') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['CronJobSpecArgs']]: + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['CronJobSpecArgs']]): + pulumi.set(self, "spec", value) class CronJob(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['CronJobSpecArgs']] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[CronJobArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CronJob represents the configuration of a single cron job. + + :param str resource_name: The name of the resource. + :param CronJobArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CronJobArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CronJobSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py index ce16ee6a37..0c60eb0107 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['CronJobList'] +__all__ = ['CronJobListArgs', 'CronJobList'] + +@pulumi.input_type +class CronJobListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CronJobList resource. + :param pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]] items: items is the list of CronJobs. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CronJobList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]: + """ + items is the list of CronJobs. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CronJobList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CronJobListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CronJobList is a collection of cron jobs. + + :param str resource_name: The name of the resource. + :param CronJobListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CronJobListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CronJobArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py index 5bc6678e0f..5e2c466cf3 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/Job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/Job.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Job'] +__all__ = ['JobArgs', 'Job'] + +@pulumi.input_type +class JobArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['JobSpecArgs']] = None): + """ + The set of arguments for constructing a Job resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['JobSpecArgs'] spec: Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Job') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['JobSpecArgs']]: + """ + Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['JobSpecArgs']]): + pulumi.set(self, "spec", value) class Job(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -51,6 +123,52 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['JobSpecArgs']] spec: Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[JobArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Job represents the configuration of a single job. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Job's '.status.startTime' is set, which indicates that the Job has started running. + 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set + to 'True'. + 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a + 'status' set to 'True'. If this condition is set, we should fail the Job immediately. + + If the Job has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param JobArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(JobArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['JobSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py index 9372fbb223..1da570769e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['JobList'] +__all__ = ['JobListArgs', 'JobList'] + +@pulumi.input_type +class JobListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['JobArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a JobList resource. + :param pulumi.Input[Sequence[pulumi.Input['JobArgs']]] items: items is the list of Jobs. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'JobList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['JobArgs']]]: + """ + items is the list of Jobs. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['JobArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class JobList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: JobListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + JobList is a collection of jobs. + + :param str resource_name: The name of the resource. + :param JobListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(JobListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['JobArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py b/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py index 8e400e58ad..aaded7fde6 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/batch/v1/outputs.py b/sdk/python/pulumi_kubernetes/batch/v1/outputs.py index 7b4c2f4b8b..6292cc5cf2 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py index 626e599f7e..6f56a1803e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import batch as _batch @@ -13,10 +13,82 @@ from ... import meta as _meta from ._inputs import * -__all__ = ['CronJob'] +__all__ = ['CronJobArgs', 'CronJob'] + +@pulumi.input_type +class CronJobArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['CronJobSpecArgs']] = None): + """ + The set of arguments for constructing a CronJob resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['CronJobSpecArgs'] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CronJob') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['CronJobSpecArgs']]: + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['CronJobSpecArgs']]): + pulumi.set(self, "spec", value) class CronJob(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +109,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['CronJobSpecArgs']] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[CronJobArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CronJob represents the configuration of a single cron job. + + :param str resource_name: The name of the resource. + :param CronJobArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CronJobArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CronJobSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py index 86c999f1bd..abaa64222b 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import batch as _batch @@ -13,10 +13,81 @@ from ... import meta as _meta from ._inputs import * -__all__ = ['CronJobList'] +__all__ = ['CronJobListArgs', 'CronJobList'] + +@pulumi.input_type +class CronJobListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CronJobList resource. + :param pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]] items: items is the list of CronJobs. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CronJobList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]: + """ + items is the list of CronJobs. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CronJobList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CronJobListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CronJobList is a collection of cron jobs. + + :param str resource_name: The name of the resource. + :param CronJobListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CronJobListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CronJobArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py index 64631c9ac2..2a31ad86ac 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import batch as _batch from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py index 757a4e8089..835849dda8 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import batch as _batch diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py index cb0c7bbed5..9186729e4d 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import batch as _batch @@ -13,10 +13,82 @@ from ... import meta as _meta from ._inputs import * -__all__ = ['CronJob'] +__all__ = ['CronJobArgs', 'CronJob'] + +@pulumi.input_type +class CronJobArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['CronJobSpecArgs']] = None): + """ + The set of arguments for constructing a CronJob resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['CronJobSpecArgs'] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v2alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'CronJob') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['CronJobSpecArgs']]: + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['CronJobSpecArgs']]): + pulumi.set(self, "spec", value) class CronJob(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +109,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['CronJobSpecArgs']] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[CronJobArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CronJob represents the configuration of a single cron job. + + :param str resource_name: The name of the resource. + :param CronJobArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CronJobArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CronJobSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py index 8fbc485a84..7a2490c145 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import batch as _batch @@ -13,10 +13,81 @@ from ... import meta as _meta from ._inputs import * -__all__ = ['CronJobList'] +__all__ = ['CronJobListArgs', 'CronJobList'] + +@pulumi.input_type +class CronJobListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CronJobList resource. + :param pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]] items: items is the list of CronJobs. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'batch/v2alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'CronJobList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]: + """ + items is the list of CronJobs. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CronJobList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CronJobListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CronJobList is a collection of cron jobs. + + :param str resource_name: The name of the resource. + :param CronJobListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CronJobListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CronJobArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py index a34589b8a7..23ecda703c 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import batch as _batch from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py index 8008f748fc..444c7d6bed 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import batch as _batch diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py index 800c96b9c1..7c91243a39 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CertificateSigningRequest'] +__all__ = ['CertificateSigningRequestArgs', 'CertificateSigningRequest'] + +@pulumi.input_type +class CertificateSigningRequestArgs: + def __init__(__self__, *, + spec: pulumi.Input['CertificateSigningRequestSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CertificateSigningRequest resource. + :param pulumi.Input['CertificateSigningRequestSpecArgs'] spec: spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'certificates.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CertificateSigningRequest') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CertificateSigningRequestSpecArgs']: + """ + spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CertificateSigningRequestSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CertificateSigningRequest(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -40,6 +107,43 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['CertificateSigningRequestSpecArgs']] spec: spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CertificateSigningRequestArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + + Kubelets use this API to obtain: + 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + + This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + + :param str resource_name: The name of the resource. + :param CertificateSigningRequestArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CertificateSigningRequestArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CertificateSigningRequestSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py index edde629e2d..f7da9283e2 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CertificateSigningRequestList'] +__all__ = ['CertificateSigningRequestListArgs', 'CertificateSigningRequestList'] + +@pulumi.input_type +class CertificateSigningRequestListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CertificateSigningRequestList resource. + :param pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]] items: items is a collection of CertificateSigningRequest objects + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'certificates.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CertificateSigningRequestList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]]: + """ + items is a collection of CertificateSigningRequest objects + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CertificateSigningRequestList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertificateSigningRequestArgs']]]] items: items is a collection of CertificateSigningRequest objects :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CertificateSigningRequestListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CertificateSigningRequestList is a collection of CertificateSigningRequest objects + + :param str resource_name: The name of the resource. + :param CertificateSigningRequestListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CertificateSigningRequestListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertificateSigningRequestArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py b/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py index 41ab8fc8e9..11270892ae 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py b/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py index e8e5a90120..0d4de50a7c 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py index 02c20f5ef8..ea0944156f 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py @@ -5,16 +5,84 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CertificateSigningRequest'] +__all__ = ['CertificateSigningRequestArgs', 'CertificateSigningRequest'] + +@pulumi.input_type +class CertificateSigningRequestArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['CertificateSigningRequestSpecArgs']] = None): + """ + The set of arguments for constructing a CertificateSigningRequest resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['CertificateSigningRequestSpecArgs'] spec: The certificate request itself and any additional information. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'certificates.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CertificateSigningRequest') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['CertificateSigningRequestSpecArgs']]: + """ + The certificate request itself and any additional information. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['CertificateSigningRequestSpecArgs']]): + pulumi.set(self, "spec", value) class CertificateSigningRequest(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +102,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['CertificateSigningRequestSpecArgs']] spec: The certificate request itself and any additional information. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[CertificateSigningRequestArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Describes a certificate signing request + + :param str resource_name: The name of the resource. + :param CertificateSigningRequestArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CertificateSigningRequestArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CertificateSigningRequestSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py index b032524afa..7e2a649f79 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py @@ -5,16 +5,79 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CertificateSigningRequestList'] +__all__ = ['CertificateSigningRequestListArgs', 'CertificateSigningRequestList'] + +@pulumi.input_type +class CertificateSigningRequestListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CertificateSigningRequestList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'certificates.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CertificateSigningRequestList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CertificateSigningRequestList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -32,6 +95,36 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CertificateSigningRequestListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a CertificateSigningRequestList resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param CertificateSigningRequestListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CertificateSigningRequestListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CertificateSigningRequestArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py index 7f531b6f51..83f060564c 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py index 86d763e24c..9a2bc5c224 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py index 40897618f4..46f6521900 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Lease'] +__all__ = ['LeaseArgs', 'Lease'] + +@pulumi.input_type +class LeaseArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['LeaseSpecArgs']] = None): + """ + The set of arguments for constructing a Lease resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['LeaseSpecArgs'] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Lease') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['LeaseSpecArgs']]: + """ + Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['LeaseSpecArgs']]): + pulumi.set(self, "spec", value) class Lease(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['LeaseSpecArgs']] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[LeaseArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Lease defines a lease concept. + + :param str resource_name: The name of the resource. + :param LeaseArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LeaseArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['LeaseSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py index 728d18a7c6..413b156074 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['LeaseList'] +__all__ = ['LeaseListArgs', 'LeaseList'] + +@pulumi.input_type +class LeaseListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a LeaseList resource. + :param pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'LeaseList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class LeaseList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LeaseListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + LeaseList is a list of Lease objects. + + :param str resource_name: The name of the resource. + :param LeaseListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LeaseListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LeaseArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py b/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py index d1114722b2..c31c4495b0 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py b/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py index 9f76b2c33d..261c87177f 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py index 723d3068ed..46fc56c72f 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Lease'] +__all__ = ['LeaseArgs', 'Lease'] + +@pulumi.input_type +class LeaseArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['LeaseSpecArgs']] = None): + """ + The set of arguments for constructing a Lease resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['LeaseSpecArgs'] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'Lease') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['LeaseSpecArgs']]: + """ + Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['LeaseSpecArgs']]): + pulumi.set(self, "spec", value) class Lease(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['LeaseSpecArgs']] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[LeaseArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Lease defines a lease concept. + + :param str resource_name: The name of the resource. + :param LeaseArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LeaseArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['LeaseSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py index 7c25112e2a..5e48aad641 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['LeaseList'] +__all__ = ['LeaseListArgs', 'LeaseList'] + +@pulumi.input_type +class LeaseListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a LeaseList resource. + :param pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'LeaseList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class LeaseList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LeaseListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + LeaseList is a list of Lease objects. + + :param str resource_name: The name of the resource. + :param LeaseListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LeaseListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LeaseArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py index a43ea7124d..24649ea9ac 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py index e9e0a41df2..fb2be9152f 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py index 7b47c38441..9b7cab55cf 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Binding.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Binding'] +__all__ = ['BindingArgs', 'Binding'] + +@pulumi.input_type +class BindingArgs: + def __init__(__self__, *, + target: pulumi.Input['ObjectReferenceArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a Binding resource. + :param pulumi.Input['ObjectReferenceArgs'] target: The target object that you want to bind to the standard object. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "target", target) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Binding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def target(self) -> pulumi.Input['ObjectReferenceArgs']: + """ + The target object that you want to bind to the standard object. + """ + return pulumi.get(self, "target") + + @target.setter + def target(self, value: pulumi.Input['ObjectReferenceArgs']): + pulumi.set(self, "target", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class Binding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ObjectReferenceArgs']] target: The target object that you want to bind to the standard object. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: BindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + + :param str resource_name: The name of the resource. + :param BindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(BindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + target: Optional[pulumi.Input[pulumi.InputType['ObjectReferenceArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py index 236f4bc8c2..6980ecae29 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py @@ -5,14 +5,118 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['ConfigMap'] +__all__ = ['ConfigMapArgs', 'ConfigMap'] + +@pulumi.input_type +class ConfigMapArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + binary_data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + immutable: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a ConfigMap resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] binary_data: BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] data: Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + :param pulumi.Input[bool] immutable: Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if binary_data is not None: + pulumi.set(__self__, "binary_data", binary_data) + if data is not None: + pulumi.set(__self__, "data", data) + if immutable is not None: + pulumi.set(__self__, "immutable", immutable) + if kind is not None: + pulumi.set(__self__, "kind", 'ConfigMap') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter(name="binaryData") + def binary_data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + """ + return pulumi.get(self, "binary_data") + + @binary_data.setter + def binary_data(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "binary_data", value) + + @property + @pulumi.getter + def data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + """ + return pulumi.get(self, "data") + + @data.setter + def data(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "data", value) + + @property + @pulumi.getter + def immutable(self) -> Optional[pulumi.Input[bool]]: + """ + Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + """ + return pulumi.get(self, "immutable") + + @immutable.setter + def immutable(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "immutable", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class ConfigMap(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +141,39 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ConfigMapArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ConfigMap holds configuration data for pods to consume. + + :param str resource_name: The name of the resource. + :param ConfigMapArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ConfigMapArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + binary_data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + immutable: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py index e8c04d3e87..a94212a00a 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ConfigMapList'] +__all__ = ['ConfigMapListArgs', 'ConfigMapList'] + +@pulumi.input_type +class ConfigMapListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ConfigMapArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ConfigMapList resource. + :param pulumi.Input[Sequence[pulumi.Input['ConfigMapArgs']]] items: Items is the list of ConfigMaps. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ConfigMapList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ConfigMapArgs']]]: + """ + Items is the list of ConfigMaps. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ConfigMapArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ConfigMapList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ConfigMapListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ConfigMapList is a resource containing a list of ConfigMap objects. + + :param str resource_name: The name of the resource. + :param ConfigMapListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ConfigMapListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigMapArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py index 5b0f3dfa0f..c18bf6a412 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Endpoints'] +__all__ = ['EndpointsArgs', 'Endpoints'] + +@pulumi.input_type +class EndpointsArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + subsets: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSubsetArgs']]]] = None): + """ + The set of arguments for constructing a Endpoints resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[Sequence[pulumi.Input['EndpointSubsetArgs']]] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Endpoints') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subsets is not None: + pulumi.set(__self__, "subsets", subsets) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subsets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSubsetArgs']]]]: + """ + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """ + return pulumi.get(self, "subsets") + + @subsets.setter + def subsets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSubsetArgs']]]]): + pulumi.set(self, "subsets", value) class Endpoints(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -46,6 +118,48 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointSubsetArgs']]]] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[EndpointsArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Endpoints is a collection of endpoints that implement the actual service. Example: + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + + :param str resource_name: The name of the resource. + :param EndpointsArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EndpointsArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + subsets: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointSubsetArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py index 8a54aa91ff..6c32ca8960 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['EndpointsList'] +__all__ = ['EndpointsListArgs', 'EndpointsList'] + +@pulumi.input_type +class EndpointsListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['EndpointsArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a EndpointsList resource. + :param pulumi.Input[Sequence[pulumi.Input['EndpointsArgs']]] items: List of endpoints. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'EndpointsList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['EndpointsArgs']]]: + """ + List of endpoints. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['EndpointsArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class EndpointsList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EndpointsListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EndpointsList is a list of endpoints. + + :param str resource_name: The name of the resource. + :param EndpointsListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EndpointsListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointsArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/EphemeralContainers.py b/sdk/python/pulumi_kubernetes/core/v1/EphemeralContainers.py index 35f0abd4d0..3d856d7556 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EphemeralContainers.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EphemeralContainers.py @@ -5,16 +5,83 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['EphemeralContainers'] +__all__ = ['EphemeralContainersArgs', 'EphemeralContainers'] + +@pulumi.input_type +class EphemeralContainersArgs: + def __init__(__self__, *, + ephemeral_containers: pulumi.Input[Sequence[pulumi.Input['EphemeralContainerArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a EphemeralContainers resource. + :param pulumi.Input[Sequence[pulumi.Input['EphemeralContainerArgs']]] ephemeral_containers: A list of ephemeral containers associated with this pod. New ephemeral containers may be appended to this list, but existing ephemeral containers may not be removed or modified. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "ephemeral_containers", ephemeral_containers) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'EphemeralContainers') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter(name="ephemeralContainers") + def ephemeral_containers(self) -> pulumi.Input[Sequence[pulumi.Input['EphemeralContainerArgs']]]: + """ + A list of ephemeral containers associated with this pod. New ephemeral containers may be appended to this list, but existing ephemeral containers may not be removed or modified. + """ + return pulumi.get(self, "ephemeral_containers") + + @ephemeral_containers.setter + def ephemeral_containers(self, value: pulumi.Input[Sequence[pulumi.Input['EphemeralContainerArgs']]]): + pulumi.set(self, "ephemeral_containers", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class EphemeralContainers(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +101,37 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EphemeralContainerArgs']]]] ephemeral_containers: A list of ephemeral containers associated with this pod. New ephemeral containers may be appended to this list, but existing ephemeral containers may not be removed or modified. :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EphemeralContainersArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + A list of ephemeral containers used with the Pod ephemeralcontainers subresource. + + :param str resource_name: The name of the resource. + :param EphemeralContainersArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EphemeralContainersArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + ephemeral_containers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EphemeralContainerArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py index a3db2fd0ba..392bad51a5 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Event.py @@ -5,16 +5,294 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Event'] +__all__ = ['EventArgs', 'Event'] + +@pulumi.input_type +class EventArgs: + def __init__(__self__, *, + involved_object: pulumi.Input['ObjectReferenceArgs'], + metadata: pulumi.Input['_meta.v1.ObjectMetaArgs'], + action: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + count: Optional[pulumi.Input[int]] = None, + event_time: Optional[pulumi.Input[str]] = None, + first_timestamp: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + last_timestamp: Optional[pulumi.Input[str]] = None, + message: Optional[pulumi.Input[str]] = None, + reason: Optional[pulumi.Input[str]] = None, + related: Optional[pulumi.Input['ObjectReferenceArgs']] = None, + reporting_component: Optional[pulumi.Input[str]] = None, + reporting_instance: Optional[pulumi.Input[str]] = None, + series: Optional[pulumi.Input['EventSeriesArgs']] = None, + source: Optional[pulumi.Input['EventSourceArgs']] = None, + type: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Event resource. + :param pulumi.Input['ObjectReferenceArgs'] involved_object: The object that this event is about. + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] action: What action was taken/failed regarding to the Regarding object. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[int] count: The number of times this event has occurred. + :param pulumi.Input[str] event_time: Time when this Event was first observed. + :param pulumi.Input[str] first_timestamp: The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] last_timestamp: The time at which the most recent occurrence of this event was recorded. + :param pulumi.Input[str] message: A human-readable description of the status of this operation. + :param pulumi.Input[str] reason: This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + :param pulumi.Input['ObjectReferenceArgs'] related: Optional secondary object for more complex actions. + :param pulumi.Input[str] reporting_component: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. + :param pulumi.Input['EventSeriesArgs'] series: Data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input['EventSourceArgs'] source: The component reporting this event. Should be a short machine understandable string. + :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future + """ + pulumi.set(__self__, "involved_object", involved_object) + pulumi.set(__self__, "metadata", metadata) + if action is not None: + pulumi.set(__self__, "action", action) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if count is not None: + pulumi.set(__self__, "count", count) + if event_time is not None: + pulumi.set(__self__, "event_time", event_time) + if first_timestamp is not None: + pulumi.set(__self__, "first_timestamp", first_timestamp) + if kind is not None: + pulumi.set(__self__, "kind", 'Event') + if last_timestamp is not None: + pulumi.set(__self__, "last_timestamp", last_timestamp) + if message is not None: + pulumi.set(__self__, "message", message) + if reason is not None: + pulumi.set(__self__, "reason", reason) + if related is not None: + pulumi.set(__self__, "related", related) + if reporting_component is not None: + pulumi.set(__self__, "reporting_component", reporting_component) + if reporting_instance is not None: + pulumi.set(__self__, "reporting_instance", reporting_instance) + if series is not None: + pulumi.set(__self__, "series", series) + if source is not None: + pulumi.set(__self__, "source", source) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="involvedObject") + def involved_object(self) -> pulumi.Input['ObjectReferenceArgs']: + """ + The object that this event is about. + """ + return pulumi.get(self, "involved_object") + + @involved_object.setter + def involved_object(self, value: pulumi.Input['ObjectReferenceArgs']): + pulumi.set(self, "involved_object", value) + + @property + @pulumi.getter + def metadata(self) -> pulumi.Input['_meta.v1.ObjectMetaArgs']: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: pulumi.Input['_meta.v1.ObjectMetaArgs']): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def action(self) -> Optional[pulumi.Input[str]]: + """ + What action was taken/failed regarding to the Regarding object. + """ + return pulumi.get(self, "action") + + @action.setter + def action(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "action", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def count(self) -> Optional[pulumi.Input[int]]: + """ + The number of times this event has occurred. + """ + return pulumi.get(self, "count") + + @count.setter + def count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "count", value) + + @property + @pulumi.getter(name="eventTime") + def event_time(self) -> Optional[pulumi.Input[str]]: + """ + Time when this Event was first observed. + """ + return pulumi.get(self, "event_time") + + @event_time.setter + def event_time(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "event_time", value) + + @property + @pulumi.getter(name="firstTimestamp") + def first_timestamp(self) -> Optional[pulumi.Input[str]]: + """ + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + """ + return pulumi.get(self, "first_timestamp") + + @first_timestamp.setter + def first_timestamp(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "first_timestamp", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter(name="lastTimestamp") + def last_timestamp(self) -> Optional[pulumi.Input[str]]: + """ + The time at which the most recent occurrence of this event was recorded. + """ + return pulumi.get(self, "last_timestamp") + + @last_timestamp.setter + def last_timestamp(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "last_timestamp", value) + + @property + @pulumi.getter + def message(self) -> Optional[pulumi.Input[str]]: + """ + A human-readable description of the status of this operation. + """ + return pulumi.get(self, "message") + + @message.setter + def message(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "message", value) + + @property + @pulumi.getter + def reason(self) -> Optional[pulumi.Input[str]]: + """ + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + """ + return pulumi.get(self, "reason") + + @reason.setter + def reason(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reason", value) + + @property + @pulumi.getter + def related(self) -> Optional[pulumi.Input['ObjectReferenceArgs']]: + """ + Optional secondary object for more complex actions. + """ + return pulumi.get(self, "related") + + @related.setter + def related(self, value: Optional[pulumi.Input['ObjectReferenceArgs']]): + pulumi.set(self, "related", value) + + @property + @pulumi.getter(name="reportingComponent") + def reporting_component(self) -> Optional[pulumi.Input[str]]: + """ + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """ + return pulumi.get(self, "reporting_component") + + @reporting_component.setter + def reporting_component(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reporting_component", value) + + @property + @pulumi.getter(name="reportingInstance") + def reporting_instance(self) -> Optional[pulumi.Input[str]]: + """ + ID of the controller instance, e.g. `kubelet-xyzf`. + """ + return pulumi.get(self, "reporting_instance") + + @reporting_instance.setter + def reporting_instance(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reporting_instance", value) + + @property + @pulumi.getter + def series(self) -> Optional[pulumi.Input['EventSeriesArgs']]: + """ + Data about the Event series this event represents or nil if it's a singleton Event. + """ + return pulumi.get(self, "series") + + @series.setter + def series(self, value: Optional[pulumi.Input['EventSeriesArgs']]): + pulumi.set(self, "series", value) + + @property + @pulumi.getter + def source(self) -> Optional[pulumi.Input['EventSourceArgs']]: + """ + The component reporting this event. Should be a short machine understandable string. + """ + return pulumi.get(self, "source") + + @source.setter + def source(self, value: Optional[pulumi.Input['EventSourceArgs']]): + pulumi.set(self, "source", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + Type of this event (Normal, Warning), new types could be added in the future + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) class Event(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -61,6 +339,50 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['EventSourceArgs']] source: The component reporting this event. Should be a short machine understandable string. :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EventArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + + :param str resource_name: The name of the resource. + :param EventArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EventArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + action: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + count: Optional[pulumi.Input[int]] = None, + event_time: Optional[pulumi.Input[str]] = None, + first_timestamp: Optional[pulumi.Input[str]] = None, + involved_object: Optional[pulumi.Input[pulumi.InputType['ObjectReferenceArgs']]] = None, + kind: Optional[pulumi.Input[str]] = None, + last_timestamp: Optional[pulumi.Input[str]] = None, + message: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + reason: Optional[pulumi.Input[str]] = None, + related: Optional[pulumi.Input[pulumi.InputType['ObjectReferenceArgs']]] = None, + reporting_component: Optional[pulumi.Input[str]] = None, + reporting_instance: Optional[pulumi.Input[str]] = None, + series: Optional[pulumi.Input[pulumi.InputType['EventSeriesArgs']]] = None, + source: Optional[pulumi.Input[pulumi.InputType['EventSourceArgs']]] = None, + type: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py index 9dea27365d..b8260a1088 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EventList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['EventList'] +__all__ = ['EventListArgs', 'EventList'] + +@pulumi.input_type +class EventListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['EventArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a EventList resource. + :param pulumi.Input[Sequence[pulumi.Input['EventArgs']]] items: List of events + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'EventList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['EventArgs']]]: + """ + List of events + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['EventArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class EventList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EventListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EventList is a list of events. + + :param str resource_name: The name of the resource. + :param EventListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EventListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py index a6a3ad9b11..4b36ebe95e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['LimitRange'] +__all__ = ['LimitRangeArgs', 'LimitRange'] + +@pulumi.input_type +class LimitRangeArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['LimitRangeSpecArgs']] = None): + """ + The set of arguments for constructing a LimitRange resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['LimitRangeSpecArgs'] spec: Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'LimitRange') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['LimitRangeSpecArgs']]: + """ + Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['LimitRangeSpecArgs']]): + pulumi.set(self, "spec", value) class LimitRange(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['LimitRangeSpecArgs']] spec: Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[LimitRangeArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + LimitRange sets resource usage limits for each kind of resource in a Namespace. + + :param str resource_name: The name of the resource. + :param LimitRangeArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LimitRangeArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['LimitRangeSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py index 2e80d9ac64..1b94bf7352 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['LimitRangeList'] +__all__ = ['LimitRangeListArgs', 'LimitRangeList'] + +@pulumi.input_type +class LimitRangeListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['LimitRangeArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a LimitRangeList resource. + :param pulumi.Input[Sequence[pulumi.Input['LimitRangeArgs']]] items: Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'LimitRangeList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['LimitRangeArgs']]]: + """ + Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['LimitRangeArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class LimitRangeList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LimitRangeListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + LimitRangeList is a list of LimitRange items. + + :param str resource_name: The name of the resource. + :param LimitRangeListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LimitRangeListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LimitRangeArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py index adcf4f0549..7867790e32 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Namespace'] +__all__ = ['NamespaceArgs', 'Namespace'] + +@pulumi.input_type +class NamespaceArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['NamespaceSpecArgs']] = None): + """ + The set of arguments for constructing a Namespace resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['NamespaceSpecArgs'] spec: Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Namespace') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['NamespaceSpecArgs']]: + """ + Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['NamespaceSpecArgs']]): + pulumi.set(self, "spec", value) class Namespace(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['NamespaceSpecArgs']] spec: Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[NamespaceArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Namespace provides a scope for Names. Use of multiple namespaces is optional. + + :param str resource_name: The name of the resource. + :param NamespaceArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NamespaceArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['NamespaceSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py index 2cc1b31e1e..df796f17f3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['NamespaceList'] +__all__ = ['NamespaceListArgs', 'NamespaceList'] + +@pulumi.input_type +class NamespaceListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['NamespaceArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a NamespaceList resource. + :param pulumi.Input[Sequence[pulumi.Input['NamespaceArgs']]] items: Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'NamespaceList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['NamespaceArgs']]]: + """ + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['NamespaceArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class NamespaceList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: NamespaceListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + NamespaceList is a list of Namespaces. + + :param str resource_name: The name of the resource. + :param NamespaceListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NamespaceListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NamespaceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py index 2029414efd..5ef2f38d26 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Node.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Node'] +__all__ = ['NodeArgs', 'Node'] + +@pulumi.input_type +class NodeArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['NodeSpecArgs']] = None): + """ + The set of arguments for constructing a Node resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['NodeSpecArgs'] spec: Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Node') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['NodeSpecArgs']]: + """ + Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['NodeSpecArgs']]): + pulumi.set(self, "spec", value) class Node(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['NodeSpecArgs']] spec: Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[NodeArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + + :param str resource_name: The name of the resource. + :param NodeArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NodeArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['NodeSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py index d094d2e93e..1b8a0aff36 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['NodeList'] +__all__ = ['NodeListArgs', 'NodeList'] + +@pulumi.input_type +class NodeListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['NodeArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a NodeList resource. + :param pulumi.Input[Sequence[pulumi.Input['NodeArgs']]] items: List of nodes + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'NodeList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['NodeArgs']]]: + """ + List of nodes + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['NodeArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class NodeList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: NodeListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + NodeList is the whole list of all Nodes which have been registered with master. + + :param str resource_name: The name of the resource. + :param NodeListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NodeListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NodeArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py index b8c50568e8..e6eb063276 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PersistentVolume'] +__all__ = ['PersistentVolumeArgs', 'PersistentVolume'] + +@pulumi.input_type +class PersistentVolumeArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PersistentVolumeSpecArgs']] = None): + """ + The set of arguments for constructing a PersistentVolume resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PersistentVolumeSpecArgs'] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PersistentVolume') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PersistentVolumeSpecArgs']]: + """ + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PersistentVolumeSpecArgs']]): + pulumi.set(self, "spec", value) class PersistentVolume(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PersistentVolumeSpecArgs']] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PersistentVolumeArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + + :param str resource_name: The name of the resource. + :param PersistentVolumeArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PersistentVolumeArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PersistentVolumeSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py index 9514bec676..eb2989d4ec 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PersistentVolumeClaim'] +__all__ = ['PersistentVolumeClaimArgs', 'PersistentVolumeClaim'] + +@pulumi.input_type +class PersistentVolumeClaimArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PersistentVolumeClaimSpecArgs']] = None): + """ + The set of arguments for constructing a PersistentVolumeClaim resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PersistentVolumeClaimSpecArgs'] spec: Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PersistentVolumeClaim') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PersistentVolumeClaimSpecArgs']]: + """ + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PersistentVolumeClaimSpecArgs']]): + pulumi.set(self, "spec", value) class PersistentVolumeClaim(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PersistentVolumeClaimSpecArgs']] spec: Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PersistentVolumeClaimArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PersistentVolumeClaim is a user's request for and claim to a persistent volume + + :param str resource_name: The name of the resource. + :param PersistentVolumeClaimArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PersistentVolumeClaimArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PersistentVolumeClaimSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py index 7f277f4435..ba5f69dfaa 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PersistentVolumeClaimList'] +__all__ = ['PersistentVolumeClaimListArgs', 'PersistentVolumeClaimList'] + +@pulumi.input_type +class PersistentVolumeClaimListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PersistentVolumeClaimArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PersistentVolumeClaimList resource. + :param pulumi.Input[Sequence[pulumi.Input['PersistentVolumeClaimArgs']]] items: A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PersistentVolumeClaimList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PersistentVolumeClaimArgs']]]: + """ + A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PersistentVolumeClaimArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PersistentVolumeClaimList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PersistentVolumeClaimListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + + :param str resource_name: The name of the resource. + :param PersistentVolumeClaimListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PersistentVolumeClaimListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PersistentVolumeClaimArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py index 37ffdf7155..0b72eab213 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PersistentVolumeList'] +__all__ = ['PersistentVolumeListArgs', 'PersistentVolumeList'] + +@pulumi.input_type +class PersistentVolumeListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PersistentVolumeArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PersistentVolumeList resource. + :param pulumi.Input[Sequence[pulumi.Input['PersistentVolumeArgs']]] items: List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PersistentVolumeList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PersistentVolumeArgs']]]: + """ + List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PersistentVolumeArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PersistentVolumeList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PersistentVolumeListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PersistentVolumeList is a list of PersistentVolume items. + + :param str resource_name: The name of the resource. + :param PersistentVolumeListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PersistentVolumeListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PersistentVolumeArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py index 0c22bac647..923699a488 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Pod.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Pod'] +__all__ = ['PodArgs', 'Pod'] + +@pulumi.input_type +class PodArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PodSpecArgs']] = None): + """ + The set of arguments for constructing a Pod resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PodSpecArgs'] spec: Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Pod') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PodSpecArgs']]: + """ + Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PodSpecArgs']]): + pulumi.set(self, "spec", value) class Pod(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -50,6 +122,52 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PodSpecArgs']] spec: Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Pod is scheduled ("PodScheduled"" '.status.condition' is true). + 2. The Pod is initialized ("Initialized" '.status.condition' is true). + 3. The Pod is ready ("Ready" '.status.condition' is true) and the '.status.phase' is + set to "Running". + Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). + + If the Pod has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param PodArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PodSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py index d107ffb899..4ddcfa30b1 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodList'] +__all__ = ['PodListArgs', 'PodList'] + +@pulumi.input_type +class PodListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodList resource. + :param pulumi.Input[Sequence[pulumi.Input['PodArgs']]] items: List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodArgs']]]: + """ + List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodList is a list of Pods. + + :param str resource_name: The name of the resource. + :param PodListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py index fe204a3f7e..aa48b4439b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodTemplate'] +__all__ = ['PodTemplateArgs', 'PodTemplate'] + +@pulumi.input_type +class PodTemplateArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + template: Optional[pulumi.Input['PodTemplateSpecArgs']] = None): + """ + The set of arguments for constructing a PodTemplate resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PodTemplateSpecArgs'] template: Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodTemplate') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if template is not None: + pulumi.set(__self__, "template", template) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def template(self) -> Optional[pulumi.Input['PodTemplateSpecArgs']]: + """ + Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "template") + + @template.setter + def template(self, value: Optional[pulumi.Input['PodTemplateSpecArgs']]): + pulumi.set(self, "template", value) class PodTemplate(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PodTemplateSpecArgs']] template: Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodTemplateArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodTemplate describes a template for creating copies of a predefined pod. + + :param str resource_name: The name of the resource. + :param PodTemplateArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodTemplateArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + template: Optional[pulumi.Input[pulumi.InputType['PodTemplateSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py index 1187be9b48..aada9ea3c9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodTemplateList'] +__all__ = ['PodTemplateListArgs', 'PodTemplateList'] + +@pulumi.input_type +class PodTemplateListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodTemplateArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodTemplateList resource. + :param pulumi.Input[Sequence[pulumi.Input['PodTemplateArgs']]] items: List of pod templates + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodTemplateList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodTemplateArgs']]]: + """ + List of pod templates + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodTemplateArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodTemplateList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodTemplateListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodTemplateList is a list of PodTemplates. + + :param str resource_name: The name of the resource. + :param PodTemplateListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodTemplateListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodTemplateArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py index 2a0d7e79a4..ad21c32110 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicationController'] +__all__ = ['ReplicationControllerArgs', 'ReplicationController'] + +@pulumi.input_type +class ReplicationControllerArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['ReplicationControllerSpecArgs']] = None): + """ + The set of arguments for constructing a ReplicationController resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['ReplicationControllerSpecArgs'] spec: Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicationController') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['ReplicationControllerSpecArgs']]: + """ + Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['ReplicationControllerSpecArgs']]): + pulumi.set(self, "spec", value) class ReplicationController(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ReplicationControllerSpecArgs']] spec: Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ReplicationControllerArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicationController represents the configuration of a replication controller. + + :param str resource_name: The name of the resource. + :param ReplicationControllerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicationControllerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['ReplicationControllerSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py index 4995d28235..d8eec5fdb0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicationControllerList'] +__all__ = ['ReplicationControllerListArgs', 'ReplicationControllerList'] + +@pulumi.input_type +class ReplicationControllerListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ReplicationControllerArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ReplicationControllerList resource. + :param pulumi.Input[Sequence[pulumi.Input['ReplicationControllerArgs']]] items: List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicationControllerList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ReplicationControllerArgs']]]: + """ + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ReplicationControllerArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ReplicationControllerList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ReplicationControllerListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicationControllerList is a collection of replication controllers. + + :param str resource_name: The name of the resource. + :param ReplicationControllerListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicationControllerListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ReplicationControllerArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py index a782e20e86..a4c9f9d5b6 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ResourceQuota'] +__all__ = ['ResourceQuotaArgs', 'ResourceQuota'] + +@pulumi.input_type +class ResourceQuotaArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['ResourceQuotaSpecArgs']] = None): + """ + The set of arguments for constructing a ResourceQuota resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['ResourceQuotaSpecArgs'] spec: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ResourceQuota') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['ResourceQuotaSpecArgs']]: + """ + Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['ResourceQuotaSpecArgs']]): + pulumi.set(self, "spec", value) class ResourceQuota(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ResourceQuotaSpecArgs']] spec: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ResourceQuotaArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ResourceQuota sets aggregate quota restrictions enforced per namespace + + :param str resource_name: The name of the resource. + :param ResourceQuotaArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ResourceQuotaArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['ResourceQuotaSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py index 4ab9bc8dbb..7e607b1c00 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ResourceQuotaList'] +__all__ = ['ResourceQuotaListArgs', 'ResourceQuotaList'] + +@pulumi.input_type +class ResourceQuotaListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ResourceQuotaArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ResourceQuotaList resource. + :param pulumi.Input[Sequence[pulumi.Input['ResourceQuotaArgs']]] items: Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ResourceQuotaList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ResourceQuotaArgs']]]: + """ + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ResourceQuotaArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ResourceQuotaList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ResourceQuotaListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ResourceQuotaList is a list of ResourceQuota items. + + :param str resource_name: The name of the resource. + :param ResourceQuotaListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ResourceQuotaListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ResourceQuotaArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py index 490ad13ccb..5757fc85f0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Secret.py @@ -5,14 +5,134 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['Secret'] +__all__ = ['SecretArgs', 'Secret'] + +@pulumi.input_type +class SecretArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + immutable: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + string_data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + type: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Secret resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] data: Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + :param pulumi.Input[bool] immutable: Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] string_data: stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. + :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if data is not None: + pulumi.set(__self__, "data", data) + if immutable is not None: + pulumi.set(__self__, "immutable", immutable) + if kind is not None: + pulumi.set(__self__, "kind", 'Secret') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if string_data is not None: + pulumi.set(__self__, "string_data", string_data) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + """ + return pulumi.get(self, "data") + + @data.setter + def data(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "data", value) + + @property + @pulumi.getter + def immutable(self) -> Optional[pulumi.Input[bool]]: + """ + Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + """ + return pulumi.get(self, "immutable") + + @immutable.setter + def immutable(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "immutable", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="stringData") + def string_data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. + """ + return pulumi.get(self, "string_data") + + @string_data.setter + def string_data(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "string_data", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + Used to facilitate programmatic handling of secret data. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) class Secret(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -49,6 +169,50 @@ def __init__(__self__, :param pulumi.Input[Mapping[str, pulumi.Input[str]]] string_data: stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[SecretArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + + Note: While Pulumi automatically encrypts the 'data' and 'stringData' + fields, this encryption only applies to Pulumi's context, including the state file, + the Service, the CLI, etc. Kubernetes does not encrypt Secret resources by default, + and the contents are visible to users with access to the Secret in Kubernetes using + tools like 'kubectl'. + + For more information on securing Kubernetes Secrets, see the following links: + https://kubernetes.io/docs/concepts/configuration/secret/#security-properties + https://kubernetes.io/docs/concepts/configuration/secret/#risks + + :param str resource_name: The name of the resource. + :param SecretArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SecretArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + immutable: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + string_data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + type: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py index b403ea29f4..07b70a9dc3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['SecretList'] +__all__ = ['SecretListArgs', 'SecretList'] + +@pulumi.input_type +class SecretListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['SecretArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a SecretList resource. + :param pulumi.Input[Sequence[pulumi.Input['SecretArgs']]] items: Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'SecretList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['SecretArgs']]]: + """ + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['SecretArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class SecretList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SecretListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + SecretList is a list of Secret. + + :param str resource_name: The name of the resource. + :param SecretListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SecretListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SecretArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py index 9771d2d6c0..166d9eff8f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Service.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._enums import * from ._inputs import * -__all__ = ['Service'] +__all__ = ['ServiceArgs', 'Service'] + +@pulumi.input_type +class ServiceArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['ServiceSpecArgs']] = None): + """ + The set of arguments for constructing a Service resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['ServiceSpecArgs'] spec: Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Service') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['ServiceSpecArgs']]: + """ + Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['ServiceSpecArgs']]): + pulumi.set(self, "spec", value) class Service(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -61,6 +133,62 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ServiceSpecArgs']] spec: Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ServiceArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Service object exists. + 2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds + for any stragglers. + 3. The endpoints objects target some number of living objects (unless the Service is + an "empty headless" Service [1] or a Service with '.spec.type: ExternalName'). + 4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). + + Known limitations: + Services targeting ReplicaSets (and, by extension, Deployments, + StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time + out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on + '.metadata.annotations' for the Service. Work to handle this case is in progress [2]. + + [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services + [2] https://github.com/pulumi/pulumi-kubernetes/pull/703 + + If the Service has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param ServiceArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ServiceArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['ServiceSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py index 0aa8b53328..752fc3a114 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py @@ -5,16 +5,120 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ServiceAccount'] +__all__ = ['ServiceAccountArgs', 'ServiceAccount'] + +@pulumi.input_type +class ServiceAccountArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + automount_service_account_token: Optional[pulumi.Input[bool]] = None, + image_pull_secrets: Optional[pulumi.Input[Sequence[pulumi.Input['LocalObjectReferenceArgs']]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ObjectReferenceArgs']]]] = None): + """ + The set of arguments for constructing a ServiceAccount resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[bool] automount_service_account_token: AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + :param pulumi.Input[Sequence[pulumi.Input['LocalObjectReferenceArgs']]] image_pull_secrets: ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[Sequence[pulumi.Input['ObjectReferenceArgs']]] secrets: Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if automount_service_account_token is not None: + pulumi.set(__self__, "automount_service_account_token", automount_service_account_token) + if image_pull_secrets is not None: + pulumi.set(__self__, "image_pull_secrets", image_pull_secrets) + if kind is not None: + pulumi.set(__self__, "kind", 'ServiceAccount') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if secrets is not None: + pulumi.set(__self__, "secrets", secrets) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter(name="automountServiceAccountToken") + def automount_service_account_token(self) -> Optional[pulumi.Input[bool]]: + """ + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + """ + return pulumi.get(self, "automount_service_account_token") + + @automount_service_account_token.setter + def automount_service_account_token(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "automount_service_account_token", value) + + @property + @pulumi.getter(name="imagePullSecrets") + def image_pull_secrets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LocalObjectReferenceArgs']]]]: + """ + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + """ + return pulumi.get(self, "image_pull_secrets") + + @image_pull_secrets.setter + def image_pull_secrets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LocalObjectReferenceArgs']]]]): + pulumi.set(self, "image_pull_secrets", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def secrets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ObjectReferenceArgs']]]]: + """ + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + return pulumi.get(self, "secrets") + + @secrets.setter + def secrets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ObjectReferenceArgs']]]]): + pulumi.set(self, "secrets", value) class ServiceAccount(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -39,6 +143,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectReferenceArgs']]]] secrets: Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ServiceAccountArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + + :param str resource_name: The name of the resource. + :param ServiceAccountArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ServiceAccountArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + automount_service_account_token: Optional[pulumi.Input[bool]] = None, + image_pull_secrets: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LocalObjectReferenceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + secrets: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectReferenceArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py index 1bf1061f08..55b2f06db6 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ServiceAccountList'] +__all__ = ['ServiceAccountListArgs', 'ServiceAccountList'] + +@pulumi.input_type +class ServiceAccountListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ServiceAccountArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ServiceAccountList resource. + :param pulumi.Input[Sequence[pulumi.Input['ServiceAccountArgs']]] items: List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ServiceAccountList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ServiceAccountArgs']]]: + """ + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ServiceAccountArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ServiceAccountList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ServiceAccountListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ServiceAccountList is a list of ServiceAccount objects + + :param str resource_name: The name of the resource. + :param ServiceAccountListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ServiceAccountListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceAccountArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py index b2dc1f4936..1dbedcacd1 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._enums import * from ._inputs import * -__all__ = ['ServiceList'] +__all__ = ['ServiceListArgs', 'ServiceList'] + +@pulumi.input_type +class ServiceListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ServiceArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ServiceList resource. + :param pulumi.Input[Sequence[pulumi.Input['ServiceArgs']]] items: List of services + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ServiceList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ServiceArgs']]]: + """ + List of services + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ServiceArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ServiceList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ServiceListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ServiceList holds a list of services. + + :param str resource_name: The name of the resource. + :param ServiceListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ServiceListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/core/v1/_inputs.py b/sdk/python/pulumi_kubernetes/core/v1/_inputs.py index 1afeace588..a2f1064c07 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/core/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta from ._enums import * diff --git a/sdk/python/pulumi_kubernetes/core/v1/outputs.py b/sdk/python/pulumi_kubernetes/core/v1/outputs.py index 296a8a6eb9..1282fad7ab 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/core/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py index 09db8483d1..8ee7b6cf74 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py @@ -5,17 +5,119 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['EndpointSlice'] +__all__ = ['EndpointSliceArgs', 'EndpointSlice'] + +@pulumi.input_type +class EndpointSliceArgs: + def __init__(__self__, *, + address_type: pulumi.Input[str], + endpoints: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]], + 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): + """ + The set of arguments for constructing a EndpointSlice resource. + :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + :param pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]] endpoints: endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + pulumi.set(__self__, "address_type", address_type) + pulumi.set(__self__, "endpoints", endpoints) + if api_version is not None: + pulumi.set(__self__, "api_version", 'discovery.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'EndpointSlice') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if ports is not None: + pulumi.set(__self__, "ports", ports) + + @property + @pulumi.getter(name="addressType") + def address_type(self) -> pulumi.Input[str]: + """ + addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + """ + return pulumi.get(self, "address_type") + + @address_type.setter + def address_type(self, value: pulumi.Input[str]): + pulumi.set(self, "address_type", value) + + @property + @pulumi.getter + def endpoints(self) -> pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]: + """ + endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + """ + return pulumi.get(self, "endpoints") + + @endpoints.setter + def endpoints(self, value: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]): + pulumi.set(self, "endpoints", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def ports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]]: + """ + ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + return pulumi.get(self, "ports") + + @ports.setter + def ports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]]): + pulumi.set(self, "ports", value) class EndpointSlice(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -40,6 +142,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointPortArgs']]]] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EndpointSliceArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + + :param str resource_name: The name of the resource. + :param EndpointSliceArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EndpointSliceArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + address_type: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + endpoints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + ports: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointPortArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py index 6880dd5602..b637615907 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['EndpointSliceList'] +__all__ = ['EndpointSliceListArgs', 'EndpointSliceList'] + +@pulumi.input_type +class EndpointSliceListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a EndpointSliceList resource. + :param pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]] items: List of endpoint slices + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'discovery.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'EndpointSliceList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]]: + """ + List of endpoint slices + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class EndpointSliceList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EndpointSliceListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EndpointSliceList represents a list of endpoint slices + + :param str resource_name: The name of the resource. + :param EndpointSliceListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EndpointSliceListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointSliceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py b/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py index c97183e48f..57d995767b 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py b/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py index d15fd6b945..bd7f5ddfbe 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py index 374489cec4..6a6946ad83 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py @@ -5,17 +5,119 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['EndpointSlice'] +__all__ = ['EndpointSliceArgs', 'EndpointSlice'] + +@pulumi.input_type +class EndpointSliceArgs: + def __init__(__self__, *, + address_type: pulumi.Input[str], + endpoints: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]], + 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): + """ + The set of arguments for constructing a EndpointSlice resource. + :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + :param pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]] endpoints: endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + pulumi.set(__self__, "address_type", address_type) + pulumi.set(__self__, "endpoints", endpoints) + if api_version is not None: + pulumi.set(__self__, "api_version", 'discovery.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'EndpointSlice') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if ports is not None: + pulumi.set(__self__, "ports", ports) + + @property + @pulumi.getter(name="addressType") + def address_type(self) -> pulumi.Input[str]: + """ + addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + """ + return pulumi.get(self, "address_type") + + @address_type.setter + def address_type(self, value: pulumi.Input[str]): + pulumi.set(self, "address_type", value) + + @property + @pulumi.getter + def endpoints(self) -> pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]: + """ + endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + """ + return pulumi.get(self, "endpoints") + + @endpoints.setter + def endpoints(self, value: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]): + pulumi.set(self, "endpoints", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def ports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]]: + """ + ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + return pulumi.get(self, "ports") + + @ports.setter + def ports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]]): + pulumi.set(self, "ports", value) class EndpointSlice(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -40,6 +142,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointPortArgs']]]] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EndpointSliceArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + + :param str resource_name: The name of the resource. + :param EndpointSliceArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EndpointSliceArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + address_type: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + endpoints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + ports: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointPortArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py index 2de5acf87b..10d7b03322 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['EndpointSliceList'] +__all__ = ['EndpointSliceListArgs', 'EndpointSliceList'] + +@pulumi.input_type +class EndpointSliceListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a EndpointSliceList resource. + :param pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]] items: List of endpoint slices + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'discovery.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'EndpointSliceList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]]: + """ + List of endpoint slices + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class EndpointSliceList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EndpointSliceListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EndpointSliceList represents a list of endpoint slices + + :param str resource_name: The name of the resource. + :param EndpointSliceListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EndpointSliceListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EndpointSliceArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py index cccaa64457..851e0f077d 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py index 80cfaa86e2..ad3e452ef4 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/events/v1/Event.py b/sdk/python/pulumi_kubernetes/events/v1/Event.py index f1a650bf21..25661ee075 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1/Event.py @@ -5,17 +5,296 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Event'] +__all__ = ['EventArgs', 'Event'] + +@pulumi.input_type +class EventArgs: + def __init__(__self__, *, + event_time: pulumi.Input[str], + action: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + deprecated_count: Optional[pulumi.Input[int]] = None, + deprecated_first_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_last_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_source: Optional[pulumi.Input['_core.v1.EventSourceArgs']] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + note: Optional[pulumi.Input[str]] = None, + reason: Optional[pulumi.Input[str]] = None, + regarding: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']] = None, + related: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']] = None, + reporting_controller: Optional[pulumi.Input[str]] = None, + reporting_instance: Optional[pulumi.Input[str]] = None, + series: Optional[pulumi.Input['EventSeriesArgs']] = None, + type: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Event resource. + :param pulumi.Input[str] event_time: eventTime is the time when this Event was first observed. It is required. + :param pulumi.Input[str] action: action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[int] deprecated_count: deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input[str] deprecated_first_timestamp: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input[str] deprecated_last_timestamp: deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input['_core.v1.EventSourceArgs'] deprecated_source: deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] note: note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + :param pulumi.Input[str] reason: reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. + :param pulumi.Input['_core.v1.ObjectReferenceArgs'] regarding: regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + :param pulumi.Input['_core.v1.ObjectReferenceArgs'] related: related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + :param pulumi.Input[str] reporting_controller: reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + :param pulumi.Input[str] reporting_instance: reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + :param pulumi.Input['EventSeriesArgs'] series: series is data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input[str] type: type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. + """ + pulumi.set(__self__, "event_time", event_time) + if action is not None: + pulumi.set(__self__, "action", action) + if api_version is not None: + pulumi.set(__self__, "api_version", 'events.k8s.io/v1') + if deprecated_count is not None: + pulumi.set(__self__, "deprecated_count", deprecated_count) + if deprecated_first_timestamp is not None: + pulumi.set(__self__, "deprecated_first_timestamp", deprecated_first_timestamp) + if deprecated_last_timestamp is not None: + pulumi.set(__self__, "deprecated_last_timestamp", deprecated_last_timestamp) + if deprecated_source is not None: + pulumi.set(__self__, "deprecated_source", deprecated_source) + if kind is not None: + pulumi.set(__self__, "kind", 'Event') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if note is not None: + pulumi.set(__self__, "note", note) + if reason is not None: + pulumi.set(__self__, "reason", reason) + if regarding is not None: + pulumi.set(__self__, "regarding", regarding) + if related is not None: + pulumi.set(__self__, "related", related) + if reporting_controller is not None: + pulumi.set(__self__, "reporting_controller", reporting_controller) + if reporting_instance is not None: + pulumi.set(__self__, "reporting_instance", reporting_instance) + if series is not None: + pulumi.set(__self__, "series", series) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="eventTime") + def event_time(self) -> pulumi.Input[str]: + """ + eventTime is the time when this Event was first observed. It is required. + """ + return pulumi.get(self, "event_time") + + @event_time.setter + def event_time(self, value: pulumi.Input[str]): + pulumi.set(self, "event_time", value) + + @property + @pulumi.getter + def action(self) -> Optional[pulumi.Input[str]]: + """ + action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. + """ + return pulumi.get(self, "action") + + @action.setter + def action(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "action", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter(name="deprecatedCount") + def deprecated_count(self) -> Optional[pulumi.Input[int]]: + """ + deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_count") + + @deprecated_count.setter + def deprecated_count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "deprecated_count", value) + + @property + @pulumi.getter(name="deprecatedFirstTimestamp") + def deprecated_first_timestamp(self) -> Optional[pulumi.Input[str]]: + """ + deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_first_timestamp") + + @deprecated_first_timestamp.setter + def deprecated_first_timestamp(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "deprecated_first_timestamp", value) + + @property + @pulumi.getter(name="deprecatedLastTimestamp") + def deprecated_last_timestamp(self) -> Optional[pulumi.Input[str]]: + """ + deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_last_timestamp") + + @deprecated_last_timestamp.setter + def deprecated_last_timestamp(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "deprecated_last_timestamp", value) + + @property + @pulumi.getter(name="deprecatedSource") + def deprecated_source(self) -> Optional[pulumi.Input['_core.v1.EventSourceArgs']]: + """ + deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_source") + + @deprecated_source.setter + def deprecated_source(self, value: Optional[pulumi.Input['_core.v1.EventSourceArgs']]): + pulumi.set(self, "deprecated_source", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def note(self) -> Optional[pulumi.Input[str]]: + """ + note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + """ + return pulumi.get(self, "note") + + @note.setter + def note(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "note", value) + + @property + @pulumi.getter + def reason(self) -> Optional[pulumi.Input[str]]: + """ + reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. + """ + return pulumi.get(self, "reason") + + @reason.setter + def reason(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reason", value) + + @property + @pulumi.getter + def regarding(self) -> Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]: + """ + regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + """ + return pulumi.get(self, "regarding") + + @regarding.setter + def regarding(self, value: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]): + pulumi.set(self, "regarding", value) + + @property + @pulumi.getter + def related(self) -> Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]: + """ + related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + """ + return pulumi.get(self, "related") + + @related.setter + def related(self, value: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]): + pulumi.set(self, "related", value) + + @property + @pulumi.getter(name="reportingController") + def reporting_controller(self) -> Optional[pulumi.Input[str]]: + """ + reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + """ + return pulumi.get(self, "reporting_controller") + + @reporting_controller.setter + def reporting_controller(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reporting_controller", value) + + @property + @pulumi.getter(name="reportingInstance") + def reporting_instance(self) -> Optional[pulumi.Input[str]]: + """ + reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + """ + return pulumi.get(self, "reporting_instance") + + @reporting_instance.setter + def reporting_instance(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reporting_instance", value) + + @property + @pulumi.getter + def series(self) -> Optional[pulumi.Input['EventSeriesArgs']]: + """ + series is data about the Event series this event represents or nil if it's a singleton Event. + """ + return pulumi.get(self, "series") + + @series.setter + def series(self, value: Optional[pulumi.Input['EventSeriesArgs']]): + pulumi.set(self, "series", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) class Event(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -62,6 +341,50 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['EventSeriesArgs']] series: series is data about the Event series this event represents or nil if it's a singleton Event. :param pulumi.Input[str] type: type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EventArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + + :param str resource_name: The name of the resource. + :param EventArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EventArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + action: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + deprecated_count: Optional[pulumi.Input[int]] = None, + deprecated_first_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_last_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_source: Optional[pulumi.Input[pulumi.InputType['_core.v1.EventSourceArgs']]] = None, + event_time: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + note: Optional[pulumi.Input[str]] = None, + reason: Optional[pulumi.Input[str]] = None, + regarding: Optional[pulumi.Input[pulumi.InputType['_core.v1.ObjectReferenceArgs']]] = None, + related: Optional[pulumi.Input[pulumi.InputType['_core.v1.ObjectReferenceArgs']]] = None, + reporting_controller: Optional[pulumi.Input[str]] = None, + reporting_instance: Optional[pulumi.Input[str]] = None, + series: Optional[pulumi.Input[pulumi.InputType['EventSeriesArgs']]] = None, + type: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/events/v1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1/EventList.py index ed6e2252c9..d95e3db395 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1/EventList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['EventList'] +__all__ = ['EventListArgs', 'EventList'] + +@pulumi.input_type +class EventListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['EventArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a EventList resource. + :param pulumi.Input[Sequence[pulumi.Input['EventArgs']]] items: items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'events.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'EventList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['EventArgs']]]: + """ + items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['EventArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class EventList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EventListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EventList is a list of Event objects. + + :param str resource_name: The name of the resource. + :param EventListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EventListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/events/v1/_inputs.py b/sdk/python/pulumi_kubernetes/events/v1/_inputs.py index 4688b12310..ee2fd3234f 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/events/v1/outputs.py b/sdk/python/pulumi_kubernetes/events/v1/outputs.py index de4c815288..5d0c873967 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py index 074b993aab..c7623d9815 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py @@ -5,17 +5,296 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Event'] +__all__ = ['EventArgs', 'Event'] + +@pulumi.input_type +class EventArgs: + def __init__(__self__, *, + event_time: pulumi.Input[str], + action: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + deprecated_count: Optional[pulumi.Input[int]] = None, + deprecated_first_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_last_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_source: Optional[pulumi.Input['_core.v1.EventSourceArgs']] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + note: Optional[pulumi.Input[str]] = None, + reason: Optional[pulumi.Input[str]] = None, + regarding: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']] = None, + related: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']] = None, + reporting_controller: Optional[pulumi.Input[str]] = None, + reporting_instance: Optional[pulumi.Input[str]] = None, + series: Optional[pulumi.Input['EventSeriesArgs']] = None, + type: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Event resource. + :param pulumi.Input[str] event_time: eventTime is the time when this Event was first observed. It is required. + :param pulumi.Input[str] action: action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[int] deprecated_count: deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input[str] deprecated_first_timestamp: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input[str] deprecated_last_timestamp: deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input['_core.v1.EventSourceArgs'] deprecated_source: deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] note: note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + :param pulumi.Input[str] reason: reason is why the action was taken. It is human-readable. This field can have at most 128 characters. + :param pulumi.Input['_core.v1.ObjectReferenceArgs'] regarding: regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + :param pulumi.Input['_core.v1.ObjectReferenceArgs'] related: related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + :param pulumi.Input[str] reporting_controller: reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + :param pulumi.Input[str] reporting_instance: reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + :param pulumi.Input['EventSeriesArgs'] series: series is data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input[str] type: type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. + """ + pulumi.set(__self__, "event_time", event_time) + if action is not None: + pulumi.set(__self__, "action", action) + if api_version is not None: + pulumi.set(__self__, "api_version", 'events.k8s.io/v1beta1') + if deprecated_count is not None: + pulumi.set(__self__, "deprecated_count", deprecated_count) + if deprecated_first_timestamp is not None: + pulumi.set(__self__, "deprecated_first_timestamp", deprecated_first_timestamp) + if deprecated_last_timestamp is not None: + pulumi.set(__self__, "deprecated_last_timestamp", deprecated_last_timestamp) + if deprecated_source is not None: + pulumi.set(__self__, "deprecated_source", deprecated_source) + if kind is not None: + pulumi.set(__self__, "kind", 'Event') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if note is not None: + pulumi.set(__self__, "note", note) + if reason is not None: + pulumi.set(__self__, "reason", reason) + if regarding is not None: + pulumi.set(__self__, "regarding", regarding) + if related is not None: + pulumi.set(__self__, "related", related) + if reporting_controller is not None: + pulumi.set(__self__, "reporting_controller", reporting_controller) + if reporting_instance is not None: + pulumi.set(__self__, "reporting_instance", reporting_instance) + if series is not None: + pulumi.set(__self__, "series", series) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="eventTime") + def event_time(self) -> pulumi.Input[str]: + """ + eventTime is the time when this Event was first observed. It is required. + """ + return pulumi.get(self, "event_time") + + @event_time.setter + def event_time(self, value: pulumi.Input[str]): + pulumi.set(self, "event_time", value) + + @property + @pulumi.getter + def action(self) -> Optional[pulumi.Input[str]]: + """ + action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters. + """ + return pulumi.get(self, "action") + + @action.setter + def action(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "action", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter(name="deprecatedCount") + def deprecated_count(self) -> Optional[pulumi.Input[int]]: + """ + deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_count") + + @deprecated_count.setter + def deprecated_count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "deprecated_count", value) + + @property + @pulumi.getter(name="deprecatedFirstTimestamp") + def deprecated_first_timestamp(self) -> Optional[pulumi.Input[str]]: + """ + deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_first_timestamp") + + @deprecated_first_timestamp.setter + def deprecated_first_timestamp(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "deprecated_first_timestamp", value) + + @property + @pulumi.getter(name="deprecatedLastTimestamp") + def deprecated_last_timestamp(self) -> Optional[pulumi.Input[str]]: + """ + deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_last_timestamp") + + @deprecated_last_timestamp.setter + def deprecated_last_timestamp(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "deprecated_last_timestamp", value) + + @property + @pulumi.getter(name="deprecatedSource") + def deprecated_source(self) -> Optional[pulumi.Input['_core.v1.EventSourceArgs']]: + """ + deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + """ + return pulumi.get(self, "deprecated_source") + + @deprecated_source.setter + def deprecated_source(self, value: Optional[pulumi.Input['_core.v1.EventSourceArgs']]): + pulumi.set(self, "deprecated_source", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def note(self) -> Optional[pulumi.Input[str]]: + """ + note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + """ + return pulumi.get(self, "note") + + @note.setter + def note(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "note", value) + + @property + @pulumi.getter + def reason(self) -> Optional[pulumi.Input[str]]: + """ + reason is why the action was taken. It is human-readable. This field can have at most 128 characters. + """ + return pulumi.get(self, "reason") + + @reason.setter + def reason(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reason", value) + + @property + @pulumi.getter + def regarding(self) -> Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]: + """ + regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + """ + return pulumi.get(self, "regarding") + + @regarding.setter + def regarding(self, value: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]): + pulumi.set(self, "regarding", value) + + @property + @pulumi.getter + def related(self) -> Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]: + """ + related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + """ + return pulumi.get(self, "related") + + @related.setter + def related(self, value: Optional[pulumi.Input['_core.v1.ObjectReferenceArgs']]): + pulumi.set(self, "related", value) + + @property + @pulumi.getter(name="reportingController") + def reporting_controller(self) -> Optional[pulumi.Input[str]]: + """ + reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + """ + return pulumi.get(self, "reporting_controller") + + @reporting_controller.setter + def reporting_controller(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reporting_controller", value) + + @property + @pulumi.getter(name="reportingInstance") + def reporting_instance(self) -> Optional[pulumi.Input[str]]: + """ + reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + """ + return pulumi.get(self, "reporting_instance") + + @reporting_instance.setter + def reporting_instance(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reporting_instance", value) + + @property + @pulumi.getter + def series(self) -> Optional[pulumi.Input['EventSeriesArgs']]: + """ + series is data about the Event series this event represents or nil if it's a singleton Event. + """ + return pulumi.get(self, "series") + + @series.setter + def series(self, value: Optional[pulumi.Input['EventSeriesArgs']]): + pulumi.set(self, "series", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) class Event(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -62,6 +341,50 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['EventSeriesArgs']] series: series is data about the Event series this event represents or nil if it's a singleton Event. :param pulumi.Input[str] type: type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EventArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + + :param str resource_name: The name of the resource. + :param EventArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EventArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + action: Optional[pulumi.Input[str]] = None, + api_version: Optional[pulumi.Input[str]] = None, + deprecated_count: Optional[pulumi.Input[int]] = None, + deprecated_first_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_last_timestamp: Optional[pulumi.Input[str]] = None, + deprecated_source: Optional[pulumi.Input[pulumi.InputType['_core.v1.EventSourceArgs']]] = None, + event_time: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + note: Optional[pulumi.Input[str]] = None, + reason: Optional[pulumi.Input[str]] = None, + regarding: Optional[pulumi.Input[pulumi.InputType['_core.v1.ObjectReferenceArgs']]] = None, + related: Optional[pulumi.Input[pulumi.InputType['_core.v1.ObjectReferenceArgs']]] = None, + reporting_controller: Optional[pulumi.Input[str]] = None, + reporting_instance: Optional[pulumi.Input[str]] = None, + series: Optional[pulumi.Input[pulumi.InputType['EventSeriesArgs']]] = None, + type: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py index cba86162b6..f3de165012 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['EventList'] +__all__ = ['EventListArgs', 'EventList'] + +@pulumi.input_type +class EventListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['EventArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a EventList resource. + :param pulumi.Input[Sequence[pulumi.Input['EventArgs']]] items: items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'events.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'EventList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['EventArgs']]]: + """ + items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['EventArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class EventList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: EventListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + EventList is a list of Event objects. + + :param str resource_name: The name of the resource. + :param EventListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(EventListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py index 0299cd0f14..da61304a17 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py index 238771c724..04ecfd3a70 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py index 24ec2a3385..0d4c9b4b22 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DaemonSet'] +__all__ = ['DaemonSetArgs', 'DaemonSet'] + +@pulumi.input_type +class DaemonSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DaemonSetSpecArgs']] = None): + """ + The set of arguments for constructing a DaemonSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['DaemonSetSpecArgs'] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'DaemonSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DaemonSetSpecArgs']]: + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DaemonSetSpecArgs']]): + pulumi.set(self, "spec", value) class DaemonSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['DaemonSetSpecArgs']] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DaemonSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DaemonSet represents the configuration of a daemon set. + + :param str resource_name: The name of the resource. + :param DaemonSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DaemonSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DaemonSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py index 05ebd706d0..3eadfb9cc6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DaemonSetList'] +__all__ = ['DaemonSetListArgs', 'DaemonSetList'] + +@pulumi.input_type +class DaemonSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DaemonSetList resource. + :param pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]] items: A list of daemon sets. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'DaemonSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]: + """ + A list of daemon sets. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DaemonSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DaemonSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DaemonSetList is a collection of daemon sets. + + :param str resource_name: The name of the resource. + :param DaemonSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DaemonSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DaemonSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py index 467979c5c7..f9f2a11761 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Deployment'] +__all__ = ['DeploymentArgs', 'Deployment'] + +@pulumi.input_type +class DeploymentArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None): + """ + The set of arguments for constructing a Deployment resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. + :param pulumi.Input['DeploymentSpecArgs'] spec: Specification of the desired behavior of the Deployment. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'Deployment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['DeploymentSpecArgs']]: + """ + Specification of the desired behavior of the Deployment. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['DeploymentSpecArgs']]): + pulumi.set(self, "spec", value) class Deployment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -58,6 +130,59 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. :param pulumi.Input[pulumi.InputType['DeploymentSpecArgs']] spec: Specification of the desired behavior of the Deployment. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[DeploymentArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param DeploymentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['DeploymentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py index ecc276d536..9d40a821d6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['DeploymentList'] +__all__ = ['DeploymentListArgs', 'DeploymentList'] + +@pulumi.input_type +class DeploymentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a DeploymentList resource. + :param pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]] items: Items is the list of Deployments. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'DeploymentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]: + """ + Items is the list of Deployments. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class DeploymentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DeploymentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param DeploymentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DeploymentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py index 6b9fc15a83..080390f12e 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Ingress'] +__all__ = ['IngressArgs', 'Ingress'] + +@pulumi.input_type +class IngressArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['IngressSpecArgs']] = None): + """ + The set of arguments for constructing a Ingress resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['IngressSpecArgs'] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'Ingress') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['IngressSpecArgs']]: + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['IngressSpecArgs']]): + pulumi.set(self, "spec", value) class Ingress(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -50,6 +122,51 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['IngressSpecArgs']] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[IngressArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param IngressArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['IngressSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py index 9d5023d500..92c0ffddca 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['IngressList'] +__all__ = ['IngressListArgs', 'IngressList'] + +@pulumi.input_type +class IngressListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a IngressList resource. + :param pulumi.Input[Sequence[pulumi.Input['IngressArgs']]] items: Items is the list of Ingress. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]: + """ + Items is the list of Ingress. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class IngressList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: IngressListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressList is a collection of Ingress. + + :param str resource_name: The name of the resource. + :param IngressListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IngressArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py index 8ad7450a6f..5543163877 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['NetworkPolicy'] +__all__ = ['NetworkPolicyArgs', 'NetworkPolicy'] + +@pulumi.input_type +class NetworkPolicyArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['NetworkPolicySpecArgs']] = None): + """ + The set of arguments for constructing a NetworkPolicy resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['NetworkPolicySpecArgs'] spec: Specification of the desired behavior for this NetworkPolicy. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'NetworkPolicy') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['NetworkPolicySpecArgs']]: + """ + Specification of the desired behavior for this NetworkPolicy. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['NetworkPolicySpecArgs']]): + pulumi.set(self, "spec", value) class NetworkPolicy(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['NetworkPolicySpecArgs']] spec: Specification of the desired behavior for this NetworkPolicy. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[NetworkPolicyArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods + + :param str resource_name: The name of the resource. + :param NetworkPolicyArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NetworkPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['NetworkPolicySpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py index c9c18bffb0..e35524ee56 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['NetworkPolicyList'] +__all__ = ['NetworkPolicyListArgs', 'NetworkPolicyList'] + +@pulumi.input_type +class NetworkPolicyListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a NetworkPolicyList resource. + :param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'NetworkPolicyList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class NetworkPolicyList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: NetworkPolicyListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. + + :param str resource_name: The name of the resource. + :param NetworkPolicyListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NetworkPolicyListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py index fd37e6fcb7..fe2a29b5e7 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['PodSecurityPolicy'] +__all__ = ['PodSecurityPolicyArgs', 'PodSecurityPolicy'] + +@pulumi.input_type +class PodSecurityPolicyArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PodSecurityPolicySpecArgs']] = None): + """ + The set of arguments for constructing a PodSecurityPolicy resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PodSecurityPolicySpecArgs'] spec: spec defines the policy enforced. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodSecurityPolicy') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PodSecurityPolicySpecArgs']]: + """ + spec defines the policy enforced. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PodSecurityPolicySpecArgs']]): + pulumi.set(self, "spec", value) class PodSecurityPolicy(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PodSecurityPolicySpecArgs']] spec: spec defines the policy enforced. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodSecurityPolicyArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. + + :param str resource_name: The name of the resource. + :param PodSecurityPolicyArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodSecurityPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PodSecurityPolicySpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py index 944e39f8bd..6149583a7f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['PodSecurityPolicyList'] +__all__ = ['PodSecurityPolicyListArgs', 'PodSecurityPolicyList'] + +@pulumi.input_type +class PodSecurityPolicyListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodSecurityPolicyList resource. + :param pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]] items: items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodSecurityPolicyList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]]: + """ + items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodSecurityPolicyList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodSecurityPolicyListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. + + :param str resource_name: The name of the resource. + :param PodSecurityPolicyListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodSecurityPolicyListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodSecurityPolicyArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py index e3ed4bb077..07a0e6bbca 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicaSet'] +__all__ = ['ReplicaSetArgs', 'ReplicaSet'] + +@pulumi.input_type +class ReplicaSetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['ReplicaSetSpecArgs']] = None): + """ + The set of arguments for constructing a ReplicaSet resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['ReplicaSetSpecArgs'] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicaSet') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['ReplicaSetSpecArgs']]: + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['ReplicaSetSpecArgs']]): + pulumi.set(self, "spec", value) class ReplicaSet(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['ReplicaSetSpecArgs']] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ReplicaSetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + :param str resource_name: The name of the resource. + :param ReplicaSetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicaSetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['ReplicaSetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py index 0bedfb8be9..0b1833650f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['ReplicaSetList'] +__all__ = ['ReplicaSetListArgs', 'ReplicaSetList'] + +@pulumi.input_type +class ReplicaSetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ReplicaSetList resource. + :param pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'extensions/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ReplicaSetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]: + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ReplicaSetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ReplicaSetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ReplicaSetList is a collection of ReplicaSets. + + :param str resource_name: The name of the resource. + :param ReplicaSetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicaSetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ReplicaSetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py index bffcc0ac6c..575cf25775 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py index 86a2b9a049..870e809709 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py index e5987ac954..5fc5ff23ce 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['FlowSchema'] +__all__ = ['FlowSchemaArgs', 'FlowSchema'] + +@pulumi.input_type +class FlowSchemaArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['FlowSchemaSpecArgs']] = None): + """ + The set of arguments for constructing a FlowSchema resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['FlowSchemaSpecArgs'] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'FlowSchema') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['FlowSchemaSpecArgs']]: + """ + `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['FlowSchemaSpecArgs']]): + pulumi.set(self, "spec", value) class FlowSchema(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['FlowSchemaSpecArgs']] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[FlowSchemaArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + + :param str resource_name: The name of the resource. + :param FlowSchemaArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(FlowSchemaArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['FlowSchemaSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py index 59faa683cc..15b961b8c2 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['FlowSchemaList'] +__all__ = ['FlowSchemaListArgs', 'FlowSchemaList'] + +@pulumi.input_type +class FlowSchemaListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a FlowSchemaList resource. + :param pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]] items: `items` is a list of FlowSchemas. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'FlowSchemaList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]: + """ + `items` is a list of FlowSchemas. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class FlowSchemaList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: FlowSchemaListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + FlowSchemaList is a list of FlowSchema objects. + + :param str resource_name: The name of the resource. + :param FlowSchemaListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(FlowSchemaListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FlowSchemaArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py index 38f7b0b750..9705b044f9 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityLevelConfiguration'] +__all__ = ['PriorityLevelConfigurationArgs', 'PriorityLevelConfiguration'] + +@pulumi.input_type +class PriorityLevelConfigurationArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']] = None): + """ + The set of arguments for constructing a PriorityLevelConfiguration resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PriorityLevelConfigurationSpecArgs'] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityLevelConfiguration') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']]: + """ + `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']]): + pulumi.set(self, "spec", value) class PriorityLevelConfiguration(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PriorityLevelConfigurationSpecArgs']] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PriorityLevelConfigurationArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityLevelConfiguration represents the configuration of a priority level. + + :param str resource_name: The name of the resource. + :param PriorityLevelConfigurationArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityLevelConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PriorityLevelConfigurationSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py index 56dcbfabcd..2c7ad816d8 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityLevelConfigurationList'] +__all__ = ['PriorityLevelConfigurationListArgs', 'PriorityLevelConfigurationList'] + +@pulumi.input_type +class PriorityLevelConfigurationListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PriorityLevelConfigurationList resource. + :param pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]] items: `items` is a list of request-priorities. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityLevelConfigurationList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]: + """ + `items` is a list of request-priorities. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PriorityLevelConfigurationList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityLevelConfigurationListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + + :param str resource_name: The name of the resource. + :param PriorityLevelConfigurationListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityLevelConfigurationListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PriorityLevelConfigurationArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py index e8fa4ade33..e01bb14b3a 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py index 8beca7b581..83c9cadd7f 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py index 872ebfef27..ae5fd33c80 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['FlowSchema'] +__all__ = ['FlowSchemaArgs', 'FlowSchema'] + +@pulumi.input_type +class FlowSchemaArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['FlowSchemaSpecArgs']] = None): + """ + The set of arguments for constructing a FlowSchema resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['FlowSchemaSpecArgs'] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'FlowSchema') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['FlowSchemaSpecArgs']]: + """ + `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['FlowSchemaSpecArgs']]): + pulumi.set(self, "spec", value) class FlowSchema(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['FlowSchemaSpecArgs']] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[FlowSchemaArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + + :param str resource_name: The name of the resource. + :param FlowSchemaArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(FlowSchemaArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['FlowSchemaSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py index 221d2a332c..576ccc1106 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['FlowSchemaList'] +__all__ = ['FlowSchemaListArgs', 'FlowSchemaList'] + +@pulumi.input_type +class FlowSchemaListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a FlowSchemaList resource. + :param pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]] items: `items` is a list of FlowSchemas. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'FlowSchemaList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]: + """ + `items` is a list of FlowSchemas. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class FlowSchemaList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: FlowSchemaListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + FlowSchemaList is a list of FlowSchema objects. + + :param str resource_name: The name of the resource. + :param FlowSchemaListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(FlowSchemaListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FlowSchemaArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py index fdb9285bd4..8b1f562187 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityLevelConfiguration'] +__all__ = ['PriorityLevelConfigurationArgs', 'PriorityLevelConfiguration'] + +@pulumi.input_type +class PriorityLevelConfigurationArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']] = None): + """ + The set of arguments for constructing a PriorityLevelConfiguration resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PriorityLevelConfigurationSpecArgs'] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityLevelConfiguration') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']]: + """ + `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']]): + pulumi.set(self, "spec", value) class PriorityLevelConfiguration(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PriorityLevelConfigurationSpecArgs']] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PriorityLevelConfigurationArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityLevelConfiguration represents the configuration of a priority level. + + :param str resource_name: The name of the resource. + :param PriorityLevelConfigurationArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityLevelConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PriorityLevelConfigurationSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py index 5a6c3c2b6b..ddb4957216 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityLevelConfigurationList'] +__all__ = ['PriorityLevelConfigurationListArgs', 'PriorityLevelConfigurationList'] + +@pulumi.input_type +class PriorityLevelConfigurationListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PriorityLevelConfigurationList resource. + :param pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]] items: `items` is a list of request-priorities. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'flowcontrol.apiserver.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityLevelConfigurationList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]: + """ + `items` is a list of request-priorities. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PriorityLevelConfigurationList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityLevelConfigurationListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + + :param str resource_name: The name of the resource. + :param PriorityLevelConfigurationListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityLevelConfigurationListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PriorityLevelConfigurationArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py index 813344bad7..7da3beb2fe 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py index b5f3b89c86..7e4e312eed 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py index 5a17645717..c8360a6114 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/Status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/Status.py @@ -5,15 +5,135 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ._inputs import * -__all__ = ['Status'] +__all__ = ['StatusArgs', 'Status'] + +@pulumi.input_type +class StatusArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + code: Optional[pulumi.Input[int]] = None, + details: Optional[pulumi.Input['StatusDetailsArgs']] = None, + kind: Optional[pulumi.Input[str]] = None, + message: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['ListMetaArgs']] = None, + reason: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Status resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[int] code: Suggested HTTP return code for this status, 0 if not set. + :param pulumi.Input['StatusDetailsArgs'] details: Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] message: A human-readable description of the status of this operation. + :param pulumi.Input['ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'v1') + if code is not None: + pulumi.set(__self__, "code", code) + if details is not None: + pulumi.set(__self__, "details", details) + if kind is not None: + pulumi.set(__self__, "kind", 'Status') + if message is not None: + pulumi.set(__self__, "message", message) + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if reason is not None: + pulumi.set(__self__, "reason", reason) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def code(self) -> Optional[pulumi.Input[int]]: + """ + Suggested HTTP return code for this status, 0 if not set. + """ + return pulumi.get(self, "code") + + @code.setter + def code(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "code", value) + + @property + @pulumi.getter + def details(self) -> Optional[pulumi.Input['StatusDetailsArgs']]: + """ + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + """ + return pulumi.get(self, "details") + + @details.setter + def details(self, value: Optional[pulumi.Input['StatusDetailsArgs']]): + pulumi.set(self, "details", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def message(self) -> Optional[pulumi.Input[str]]: + """ + A human-readable description of the status of this operation. + """ + return pulumi.get(self, "message") + + @message.setter + def message(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "message", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['ListMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def reason(self) -> Optional[pulumi.Input[str]]: + """ + A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """ + return pulumi.get(self, "reason") + + @reason.setter + def reason(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reason", value) class Status(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -40,6 +160,40 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[StatusArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Status is a return value for calls that don't return other objects. + + :param str resource_name: The name of the resource. + :param StatusArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StatusArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + code: Optional[pulumi.Input[int]] = None, + details: Optional[pulumi.Input[pulumi.InputType['StatusDetailsArgs']]] = None, + kind: Optional[pulumi.Input[str]] = None, + message: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['ListMetaArgs']]] = None, + reason: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py b/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py index e1e0b0b505..93b9a19b4e 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables __all__ = [ diff --git a/sdk/python/pulumi_kubernetes/meta/v1/outputs.py b/sdk/python/pulumi_kubernetes/meta/v1/outputs.py index 684145c918..0a11b44506 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs diff --git a/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py index cbca6fd735..52b8952fcc 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Ingress'] +__all__ = ['IngressArgs', 'Ingress'] + +@pulumi.input_type +class IngressArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['IngressSpecArgs']] = None): + """ + The set of arguments for constructing a Ingress resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['IngressSpecArgs'] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Ingress') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['IngressSpecArgs']]: + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['IngressSpecArgs']]): + pulumi.set(self, "spec", value) class Ingress(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -50,6 +122,51 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['IngressSpecArgs']] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[IngressArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param IngressArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['IngressSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py index a84400d84d..f71aee0d8d 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['IngressClass'] +__all__ = ['IngressClassArgs', 'IngressClass'] + +@pulumi.input_type +class IngressClassArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['IngressClassSpecArgs']] = None): + """ + The set of arguments for constructing a IngressClass resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['IngressClassSpecArgs'] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['IngressClassSpecArgs']]: + """ + Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['IngressClassSpecArgs']]): + pulumi.set(self, "spec", value) class IngressClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['IngressClassSpecArgs']] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[IngressClassArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + + :param str resource_name: The name of the resource. + :param IngressClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['IngressClassSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py index d1979aa64d..5093915e75 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['IngressClassList'] +__all__ = ['IngressClassListArgs', 'IngressClassList'] + +@pulumi.input_type +class IngressClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a IngressClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]] items: Items is the list of IngressClasses. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]]: + """ + Items is the list of IngressClasses. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class IngressClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: IngressClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressClassList is a collection of IngressClasses. + + :param str resource_name: The name of the resource. + :param IngressClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IngressClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py index 197bebdf15..bbd2646e7d 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['IngressList'] +__all__ = ['IngressListArgs', 'IngressList'] + +@pulumi.input_type +class IngressListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a IngressList resource. + :param pulumi.Input[Sequence[pulumi.Input['IngressArgs']]] items: Items is the list of Ingress. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]: + """ + Items is the list of Ingress. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class IngressList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: IngressListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressList is a collection of Ingress. + + :param str resource_name: The name of the resource. + :param IngressListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IngressArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py index fd6dfb2dbd..ed33ed3887 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['NetworkPolicy'] +__all__ = ['NetworkPolicyArgs', 'NetworkPolicy'] + +@pulumi.input_type +class NetworkPolicyArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['NetworkPolicySpecArgs']] = None): + """ + The set of arguments for constructing a NetworkPolicy resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['NetworkPolicySpecArgs'] spec: Specification of the desired behavior for this NetworkPolicy. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'NetworkPolicy') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['NetworkPolicySpecArgs']]: + """ + Specification of the desired behavior for this NetworkPolicy. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['NetworkPolicySpecArgs']]): + pulumi.set(self, "spec", value) class NetworkPolicy(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['NetworkPolicySpecArgs']] spec: Specification of the desired behavior for this NetworkPolicy. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[NetworkPolicyArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + NetworkPolicy describes what network traffic is allowed for a set of Pods + + :param str resource_name: The name of the resource. + :param NetworkPolicyArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NetworkPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['NetworkPolicySpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py index 2b9128ff98..e3f6a3e144 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['NetworkPolicyList'] +__all__ = ['NetworkPolicyListArgs', 'NetworkPolicyList'] + +@pulumi.input_type +class NetworkPolicyListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a NetworkPolicyList resource. + :param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'NetworkPolicyList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class NetworkPolicyList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: NetworkPolicyListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + NetworkPolicyList is a list of NetworkPolicy objects. + + :param str resource_name: The name of the resource. + :param NetworkPolicyListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(NetworkPolicyListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py b/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py index 48cfd6e5dc..5aa2b952d7 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/networking/v1/outputs.py b/sdk/python/pulumi_kubernetes/networking/v1/outputs.py index b294af8d10..490f8ba2c8 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py index 07d93e012a..1768920356 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['Ingress'] +__all__ = ['IngressArgs', 'Ingress'] + +@pulumi.input_type +class IngressArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['IngressSpecArgs']] = None): + """ + The set of arguments for constructing a Ingress resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['IngressSpecArgs'] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'Ingress') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['IngressSpecArgs']]: + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['IngressSpecArgs']]): + pulumi.set(self, "spec", value) class Ingress(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -50,6 +122,51 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['IngressSpecArgs']] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[IngressArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param IngressArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['IngressSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py index 201e53f104..2fa16bd506 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['IngressClass'] +__all__ = ['IngressClassArgs', 'IngressClass'] + +@pulumi.input_type +class IngressClassArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['IngressClassSpecArgs']] = None): + """ + The set of arguments for constructing a IngressClass resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['IngressClassSpecArgs'] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['IngressClassSpecArgs']]: + """ + Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['IngressClassSpecArgs']]): + pulumi.set(self, "spec", value) class IngressClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['IngressClassSpecArgs']] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[IngressClassArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + + :param str resource_name: The name of the resource. + :param IngressClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['IngressClassSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py index 216a73efa5..2bd967578c 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['IngressClassList'] +__all__ = ['IngressClassListArgs', 'IngressClassList'] + +@pulumi.input_type +class IngressClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a IngressClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]] items: Items is the list of IngressClasses. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]]: + """ + Items is the list of IngressClasses. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class IngressClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: IngressClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressClassList is a collection of IngressClasses. + + :param str resource_name: The name of the resource. + :param IngressClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IngressClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py index 54ec04d7f2..f9014534c7 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['IngressList'] +__all__ = ['IngressListArgs', 'IngressList'] + +@pulumi.input_type +class IngressListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a IngressList resource. + :param pulumi.Input[Sequence[pulumi.Input['IngressArgs']]] items: Items is the list of Ingress. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'networking.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'IngressList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]: + """ + Items is the list of Ingress. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class IngressList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: IngressListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + IngressList is a collection of Ingress. + + :param str resource_name: The name of the resource. + :param IngressListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(IngressListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IngressArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py index 30ef056b6b..a6732fc844 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py index 52c25e76cb..7de22f6085 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py index f79685b095..dcda372bbf 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py @@ -5,17 +5,124 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['RuntimeClass'] +__all__ = ['RuntimeClassArgs', 'RuntimeClass'] + +@pulumi.input_type +class RuntimeClassArgs: + def __init__(__self__, *, + handler: pulumi.Input[str], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + overhead: Optional[pulumi.Input['OverheadArgs']] = None, + scheduling: Optional[pulumi.Input['SchedulingArgs']] = None): + """ + The set of arguments for constructing a RuntimeClass resource. + :param pulumi.Input[str] handler: Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['OverheadArgs'] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see + https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ + This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature. + :param pulumi.Input['SchedulingArgs'] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + pulumi.set(__self__, "handler", handler) + if api_version is not None: + pulumi.set(__self__, "api_version", 'node.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'RuntimeClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if overhead is not None: + pulumi.set(__self__, "overhead", overhead) + if scheduling is not None: + pulumi.set(__self__, "scheduling", scheduling) + + @property + @pulumi.getter + def handler(self) -> pulumi.Input[str]: + """ + Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + """ + return pulumi.get(self, "handler") + + @handler.setter + def handler(self, value: pulumi.Input[str]): + pulumi.set(self, "handler", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def overhead(self) -> Optional[pulumi.Input['OverheadArgs']]: + """ + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see + https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ + This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature. + """ + return pulumi.get(self, "overhead") + + @overhead.setter + def overhead(self, value: Optional[pulumi.Input['OverheadArgs']]): + pulumi.set(self, "overhead", value) + + @property + @pulumi.getter + def scheduling(self) -> Optional[pulumi.Input['SchedulingArgs']]: + """ + Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + return pulumi.get(self, "scheduling") + + @scheduling.setter + def scheduling(self, value: Optional[pulumi.Input['SchedulingArgs']]): + pulumi.set(self, "scheduling", value) class RuntimeClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -42,6 +149,39 @@ def __init__(__self__, This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature. :param pulumi.Input[pulumi.InputType['SchedulingArgs']] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RuntimeClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + + :param str resource_name: The name of the resource. + :param RuntimeClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RuntimeClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + handler: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + overhead: Optional[pulumi.Input[pulumi.InputType['OverheadArgs']]] = None, + scheduling: Optional[pulumi.Input[pulumi.InputType['SchedulingArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py index c8be6e08a5..7a1b8027df 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['RuntimeClassList'] +__all__ = ['RuntimeClassListArgs', 'RuntimeClassList'] + +@pulumi.input_type +class RuntimeClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RuntimeClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'node.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'RuntimeClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RuntimeClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RuntimeClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RuntimeClassList is a list of RuntimeClass objects. + + :param str resource_name: The name of the resource. + :param RuntimeClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RuntimeClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RuntimeClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/node/v1/_inputs.py b/sdk/python/pulumi_kubernetes/node/v1/_inputs.py index 390ee2e5b9..181dffab31 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/node/v1/outputs.py b/sdk/python/pulumi_kubernetes/node/v1/outputs.py index b787cb7d44..02ef55f5cd 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py index b0953f7861..5d42e1c1c9 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['RuntimeClass'] +__all__ = ['RuntimeClassArgs', 'RuntimeClass'] + +@pulumi.input_type +class RuntimeClassArgs: + def __init__(__self__, *, + spec: pulumi.Input['RuntimeClassSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a RuntimeClass resource. + :param pulumi.Input['RuntimeClassSpecArgs'] spec: Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'node.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'RuntimeClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['RuntimeClassSpecArgs']: + """ + Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['RuntimeClassSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class RuntimeClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['RuntimeClassSpecArgs']] spec: Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RuntimeClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + + :param str resource_name: The name of the resource. + :param RuntimeClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RuntimeClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['RuntimeClassSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py index e4b7d6add7..394c5fdeda 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['RuntimeClassList'] +__all__ = ['RuntimeClassListArgs', 'RuntimeClassList'] + +@pulumi.input_type +class RuntimeClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RuntimeClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'node.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'RuntimeClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RuntimeClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RuntimeClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RuntimeClassList is a list of RuntimeClass objects. + + :param str resource_name: The name of the resource. + :param RuntimeClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RuntimeClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RuntimeClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py index d37e04417b..fc59cc7ad6 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py index a43fa0cd25..33b5b5fc31 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py index be6d42ea64..e6857b1f84 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py @@ -5,17 +5,120 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['RuntimeClass'] +__all__ = ['RuntimeClassArgs', 'RuntimeClass'] + +@pulumi.input_type +class RuntimeClassArgs: + def __init__(__self__, *, + handler: pulumi.Input[str], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + overhead: Optional[pulumi.Input['OverheadArgs']] = None, + scheduling: Optional[pulumi.Input['SchedulingArgs']] = None): + """ + The set of arguments for constructing a RuntimeClass resource. + :param pulumi.Input[str] handler: Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['OverheadArgs'] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + :param pulumi.Input['SchedulingArgs'] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + pulumi.set(__self__, "handler", handler) + if api_version is not None: + pulumi.set(__self__, "api_version", 'node.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'RuntimeClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if overhead is not None: + pulumi.set(__self__, "overhead", overhead) + if scheduling is not None: + pulumi.set(__self__, "scheduling", scheduling) + + @property + @pulumi.getter + def handler(self) -> pulumi.Input[str]: + """ + Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + """ + return pulumi.get(self, "handler") + + @handler.setter + def handler(self, value: pulumi.Input[str]): + pulumi.set(self, "handler", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def overhead(self) -> Optional[pulumi.Input['OverheadArgs']]: + """ + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + """ + return pulumi.get(self, "overhead") + + @overhead.setter + def overhead(self, value: Optional[pulumi.Input['OverheadArgs']]): + pulumi.set(self, "overhead", value) + + @property + @pulumi.getter + def scheduling(self) -> Optional[pulumi.Input['SchedulingArgs']]: + """ + Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + return pulumi.get(self, "scheduling") + + @scheduling.setter + def scheduling(self, value: Optional[pulumi.Input['SchedulingArgs']]): + pulumi.set(self, "scheduling", value) class RuntimeClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -40,6 +143,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['OverheadArgs']] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. :param pulumi.Input[pulumi.InputType['SchedulingArgs']] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RuntimeClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + + :param str resource_name: The name of the resource. + :param RuntimeClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RuntimeClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + handler: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + overhead: Optional[pulumi.Input[pulumi.InputType['OverheadArgs']]] = None, + scheduling: Optional[pulumi.Input[pulumi.InputType['SchedulingArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py index 1ebb68e8e6..7e26c65d3a 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['RuntimeClassList'] +__all__ = ['RuntimeClassListArgs', 'RuntimeClassList'] + +@pulumi.input_type +class RuntimeClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RuntimeClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'node.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'RuntimeClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RuntimeClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RuntimeClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RuntimeClassList is a list of RuntimeClass objects. + + :param str resource_name: The name of the resource. + :param RuntimeClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RuntimeClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RuntimeClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py index fabce548fd..f6da7bcea0 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py index fa02798e15..aa6e291607 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py index 61636a9602..606cfc9d0d 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodDisruptionBudget'] +__all__ = ['PodDisruptionBudgetArgs', 'PodDisruptionBudget'] + +@pulumi.input_type +class PodDisruptionBudgetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']] = None): + """ + The set of arguments for constructing a PodDisruptionBudget resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PodDisruptionBudgetSpecArgs'] spec: Specification of the desired behavior of the PodDisruptionBudget. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'policy/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodDisruptionBudget') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']]: + """ + Specification of the desired behavior of the PodDisruptionBudget. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']]): + pulumi.set(self, "spec", value) class PodDisruptionBudget(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PodDisruptionBudgetSpecArgs']] spec: Specification of the desired behavior of the PodDisruptionBudget. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodDisruptionBudgetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + + :param str resource_name: The name of the resource. + :param PodDisruptionBudgetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodDisruptionBudgetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PodDisruptionBudgetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py index e75b319ff3..1645fe3b03 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodDisruptionBudgetList'] +__all__ = ['PodDisruptionBudgetListArgs', 'PodDisruptionBudgetList'] + +@pulumi.input_type +class PodDisruptionBudgetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodDisruptionBudgetList resource. + :param pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]] items: Items is a list of PodDisruptionBudgets + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'policy/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodDisruptionBudgetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]]: + """ + Items is a list of PodDisruptionBudgets + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodDisruptionBudgetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodDisruptionBudgetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + + :param str resource_name: The name of the resource. + :param PodDisruptionBudgetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodDisruptionBudgetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodDisruptionBudgetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py b/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py index 871820b338..db0dc78ba9 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/policy/v1/outputs.py b/sdk/python/pulumi_kubernetes/policy/v1/outputs.py index f66b44f5f2..9bd91a1268 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py index ed8d240489..2724d86cca 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py @@ -5,16 +5,84 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodDisruptionBudget'] +__all__ = ['PodDisruptionBudgetArgs', 'PodDisruptionBudget'] + +@pulumi.input_type +class PodDisruptionBudgetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']] = None): + """ + The set of arguments for constructing a PodDisruptionBudget resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['PodDisruptionBudgetSpecArgs'] spec: Specification of the desired behavior of the PodDisruptionBudget. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'policy/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodDisruptionBudget') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']]: + """ + Specification of the desired behavior of the PodDisruptionBudget. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']]): + pulumi.set(self, "spec", value) class PodDisruptionBudget(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +102,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['PodDisruptionBudgetSpecArgs']] spec: Specification of the desired behavior of the PodDisruptionBudget. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodDisruptionBudgetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + + :param str resource_name: The name of the resource. + :param PodDisruptionBudgetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodDisruptionBudgetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PodDisruptionBudgetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py index 48ebd02e30..fada7e1d80 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py @@ -5,16 +5,79 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PodDisruptionBudgetList'] +__all__ = ['PodDisruptionBudgetListArgs', 'PodDisruptionBudgetList'] + +@pulumi.input_type +class PodDisruptionBudgetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodDisruptionBudgetList resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'policy/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodDisruptionBudgetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]]: + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodDisruptionBudgetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -33,6 +96,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodDisruptionBudgetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + + :param str resource_name: The name of the resource. + :param PodDisruptionBudgetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodDisruptionBudgetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodDisruptionBudgetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py index bae033288d..db39d1a5e2 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py @@ -5,17 +5,89 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['PodSecurityPolicy'] +__all__ = ['PodSecurityPolicyArgs', 'PodSecurityPolicy'] + +@pulumi.input_type +class PodSecurityPolicyArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PodSecurityPolicySpecArgs']] = None): + """ + The set of arguments for constructing a PodSecurityPolicy resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['PodSecurityPolicySpecArgs'] spec: spec defines the policy enforced. + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'policy/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodSecurityPolicy') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PodSecurityPolicySpecArgs']]: + """ + spec defines the policy enforced. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PodSecurityPolicySpecArgs']]): + pulumi.set(self, "spec", value) class PodSecurityPolicy(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +108,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['PodSecurityPolicySpecArgs']] spec: spec defines the policy enforced. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodSecurityPolicyArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21. + + :param str resource_name: The name of the resource. + :param PodSecurityPolicyArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodSecurityPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PodSecurityPolicySpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py index ed4fb0d176..d159e3c201 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['PodSecurityPolicyList'] +__all__ = ['PodSecurityPolicyListArgs', 'PodSecurityPolicyList'] + +@pulumi.input_type +class PodSecurityPolicyListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodSecurityPolicyList resource. + :param pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]] items: items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'policy/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodSecurityPolicyList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]]: + """ + items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodSecurityPolicyList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodSecurityPolicyListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodSecurityPolicyList is a list of PodSecurityPolicy objects. + + :param str resource_name: The name of the resource. + :param PodSecurityPolicyListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodSecurityPolicyListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodSecurityPolicyArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py index a1540b5aad..7a094d315e 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py index d974f68440..8e1d4635a3 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py index bd1eafb30d..06b989c6ed 100644 --- a/sdk/python/pulumi_kubernetes/provider.py +++ b/sdk/python/pulumi_kubernetes/provider.py @@ -5,13 +5,165 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities, _tables -__all__ = ['Provider'] +__all__ = ['ProviderArgs', 'Provider'] + +@pulumi.input_type +class ProviderArgs: + def __init__(__self__, *, + cluster: Optional[pulumi.Input[str]] = None, + context: Optional[pulumi.Input[str]] = None, + enable_dry_run: Optional[pulumi.Input[bool]] = None, + kubeconfig: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, + render_yaml_to_directory: Optional[pulumi.Input[str]] = None, + suppress_deprecation_warnings: Optional[pulumi.Input[bool]] = None): + """ + The set of arguments for constructing a Provider resource. + :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use. + :param pulumi.Input[str] context: If present, the name of the kubeconfig context to use. + :param pulumi.Input[bool] enable_dry_run: BETA FEATURE - If present and set to true, enable server-side diff calculations. + This feature is in developer preview, and is disabled by default. + :param pulumi.Input[str] kubeconfig: The contents of a kubeconfig file or the path to a kubeconfig file. + :param pulumi.Input[str] namespace: If present, the default namespace to use. This flag is ignored for cluster-scoped resources. + + A namespace can be specified in multiple places, and the precedence is as follows: + 1. `.metadata.namespace` set on the resource. + 2. This `namespace` parameter. + 3. `namespace` set for the active context in the kubeconfig. + :param pulumi.Input[str] render_yaml_to_directory: BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not + be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes + to the Pulumi program. This feature is in developer preview, and is disabled by default. + + Note that some computed Outputs such as status fields will not be populated + since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, + and may result in an error if they are referenced by other resources. Also note that any secret values + used in these resources will be rendered in plaintext to the resulting YAML. + :param pulumi.Input[bool] suppress_deprecation_warnings: If present and set to true, suppress apiVersion deprecation warnings from the CLI. + """ + if cluster is not None: + pulumi.set(__self__, "cluster", cluster) + if context is not None: + pulumi.set(__self__, "context", context) + if enable_dry_run is None: + enable_dry_run = _utilities.get_env_bool('PULUMI_K8S_ENABLE_DRY_RUN') + if enable_dry_run is not None: + pulumi.set(__self__, "enable_dry_run", enable_dry_run) + if kubeconfig is None: + kubeconfig = _utilities.get_env('KUBECONFIG') + if kubeconfig is not None: + pulumi.set(__self__, "kubeconfig", kubeconfig) + if namespace is not None: + pulumi.set(__self__, "namespace", namespace) + if render_yaml_to_directory is not None: + pulumi.set(__self__, "render_yaml_to_directory", render_yaml_to_directory) + if suppress_deprecation_warnings is None: + suppress_deprecation_warnings = _utilities.get_env_bool('PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS') + if suppress_deprecation_warnings is not None: + pulumi.set(__self__, "suppress_deprecation_warnings", suppress_deprecation_warnings) + + @property + @pulumi.getter + def cluster(self) -> Optional[pulumi.Input[str]]: + """ + If present, the name of the kubeconfig cluster to use. + """ + return pulumi.get(self, "cluster") + + @cluster.setter + def cluster(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "cluster", value) + + @property + @pulumi.getter + def context(self) -> Optional[pulumi.Input[str]]: + """ + If present, the name of the kubeconfig context to use. + """ + return pulumi.get(self, "context") + + @context.setter + def context(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "context", value) + + @property + @pulumi.getter(name="enableDryRun") + def enable_dry_run(self) -> Optional[pulumi.Input[bool]]: + """ + BETA FEATURE - If present and set to true, enable server-side diff calculations. + This feature is in developer preview, and is disabled by default. + """ + return pulumi.get(self, "enable_dry_run") + + @enable_dry_run.setter + def enable_dry_run(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enable_dry_run", value) + + @property + @pulumi.getter + def kubeconfig(self) -> Optional[pulumi.Input[str]]: + """ + The contents of a kubeconfig file or the path to a kubeconfig file. + """ + return pulumi.get(self, "kubeconfig") + + @kubeconfig.setter + def kubeconfig(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kubeconfig", value) + + @property + @pulumi.getter + def namespace(self) -> Optional[pulumi.Input[str]]: + """ + If present, the default namespace to use. This flag is ignored for cluster-scoped resources. + + A namespace can be specified in multiple places, and the precedence is as follows: + 1. `.metadata.namespace` set on the resource. + 2. This `namespace` parameter. + 3. `namespace` set for the active context in the kubeconfig. + """ + return pulumi.get(self, "namespace") + + @namespace.setter + def namespace(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "namespace", value) + + @property + @pulumi.getter(name="renderYamlToDirectory") + def render_yaml_to_directory(self) -> Optional[pulumi.Input[str]]: + """ + BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not + be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes + to the Pulumi program. This feature is in developer preview, and is disabled by default. + + Note that some computed Outputs such as status fields will not be populated + since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, + and may result in an error if they are referenced by other resources. Also note that any secret values + used in these resources will be rendered in plaintext to the resulting YAML. + """ + return pulumi.get(self, "render_yaml_to_directory") + + @render_yaml_to_directory.setter + def render_yaml_to_directory(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "render_yaml_to_directory", value) + + @property + @pulumi.getter(name="suppressDeprecationWarnings") + def suppress_deprecation_warnings(self) -> Optional[pulumi.Input[bool]]: + """ + If present and set to true, suppress apiVersion deprecation warnings from the CLI. + """ + return pulumi.get(self, "suppress_deprecation_warnings") + + @suppress_deprecation_warnings.setter + def suppress_deprecation_warnings(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "suppress_deprecation_warnings", value) class Provider(pulumi.ProviderResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -51,6 +203,40 @@ def __init__(__self__, used in these resources will be rendered in plaintext to the resulting YAML. :param pulumi.Input[bool] suppress_deprecation_warnings: If present and set to true, suppress apiVersion deprecation warnings from the CLI. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ProviderArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + The provider type for the kubernetes package. + + :param str resource_name: The name of the resource. + :param ProviderArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + cluster: Optional[pulumi.Input[str]] = None, + context: Optional[pulumi.Input[str]] = None, + enable_dry_run: Optional[pulumi.Input[bool]] = None, + kubeconfig: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, + render_yaml_to_directory: Optional[pulumi.Input[str]] = None, + suppress_deprecation_warnings: Optional[pulumi.Input[bool]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py index 488160932f..d4abf1f449 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py @@ -5,16 +5,104 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRole'] +__all__ = ['ClusterRoleArgs', 'ClusterRole'] + +@pulumi.input_type +class ClusterRoleArgs: + def __init__(__self__, *, + aggregation_rule: Optional[pulumi.Input['AggregationRuleArgs']] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None): + """ + The set of arguments for constructing a ClusterRole resource. + :param pulumi.Input['AggregationRuleArgs'] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]] rules: Rules holds all the PolicyRules for this ClusterRole + """ + if aggregation_rule is not None: + pulumi.set(__self__, "aggregation_rule", aggregation_rule) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRole') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if rules is not None: + pulumi.set(__self__, "rules", rules) + + @property + @pulumi.getter(name="aggregationRule") + def aggregation_rule(self) -> Optional[pulumi.Input['AggregationRuleArgs']]: + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """ + return pulumi.get(self, "aggregation_rule") + + @aggregation_rule.setter + def aggregation_rule(self, value: Optional[pulumi.Input['AggregationRuleArgs']]): + pulumi.set(self, "aggregation_rule", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]: + """ + Rules holds all the PolicyRules for this ClusterRole + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]): + pulumi.set(self, "rules", value) class ClusterRole(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +125,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]] rules: Rules holds all the PolicyRules for this ClusterRole """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ClusterRoleArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + + :param str resource_name: The name of the resource. + :param ClusterRoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + aggregation_rule: Optional[pulumi.Input[pulumi.InputType['AggregationRuleArgs']]] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py index cf5c1af415..54433fb801 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py @@ -5,16 +5,103 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleBinding'] +__all__ = ['ClusterRoleBindingArgs', 'ClusterRoleBinding'] + +@pulumi.input_type +class ClusterRoleBindingArgs: + def __init__(__self__, *, + role_ref: pulumi.Input['RoleRefArgs'], + 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): + """ + The set of arguments for constructing a ClusterRoleBinding resource. + :param pulumi.Input['RoleRefArgs'] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]] subjects: Subjects holds references to the objects the role applies to. + """ + pulumi.set(__self__, "role_ref", role_ref) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleBinding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subjects is not None: + pulumi.set(__self__, "subjects", subjects) + + @property + @pulumi.getter(name="roleRef") + def role_ref(self) -> pulumi.Input['RoleRefArgs']: + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + return pulumi.get(self, "role_ref") + + @role_ref.setter + def role_ref(self, value: pulumi.Input['RoleRefArgs']): + pulumi.set(self, "role_ref", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subjects(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]: + """ + Subjects holds references to the objects the role applies to. + """ + return pulumi.get(self, "subjects") + + @subjects.setter + def subjects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]): + pulumi.set(self, "subjects", value) class ClusterRoleBinding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +124,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['RoleRefArgs']] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]] subjects: Subjects holds references to the objects the role applies to. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleBindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + + :param str resource_name: The name of the resource. + :param ClusterRoleBindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleBindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + role_ref: Optional[pulumi.Input[pulumi.InputType['RoleRefArgs']]] = None, + subjects: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py index 98192bfa11..eb70ed5653 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleBindingList'] +__all__ = ['ClusterRoleBindingListArgs', 'ClusterRoleBindingList'] + +@pulumi.input_type +class ClusterRoleBindingListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ClusterRoleBindingList resource. + :param pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]] items: Items is a list of ClusterRoleBindings + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleBindingList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]: + """ + Items is a list of ClusterRoleBindings + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ClusterRoleBindingList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleBindingListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings + + :param str resource_name: The name of the resource. + :param ClusterRoleBindingListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleBindingListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterRoleBindingArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py index cd90195bac..7d503d9361 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleList'] +__all__ = ['ClusterRoleListArgs', 'ClusterRoleList'] + +@pulumi.input_type +class ClusterRoleListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ClusterRoleList resource. + :param pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]] items: Items is a list of ClusterRoles + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]: + """ + Items is a list of ClusterRoles + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ClusterRoleList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleList is a collection of ClusterRoles + + :param str resource_name: The name of the resource. + :param ClusterRoleListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterRoleArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py index 7c767a46f9..73cba5ca60 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Role'] +__all__ = ['RoleArgs', 'Role'] + +@pulumi.input_type +class RoleArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None): + """ + The set of arguments for constructing a Role resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]] rules: Rules holds all the PolicyRules for this Role + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'Role') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if rules is not None: + pulumi.set(__self__, "rules", rules) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]: + """ + Rules holds all the PolicyRules for this Role + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]): + pulumi.set(self, "rules", value) class Role(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]] rules: Rules holds all the PolicyRules for this Role """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[RoleArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + + :param str resource_name: The name of the resource. + :param RoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py index 710b69e8e2..660d7b49f7 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py @@ -5,16 +5,103 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleBinding'] +__all__ = ['RoleBindingArgs', 'RoleBinding'] + +@pulumi.input_type +class RoleBindingArgs: + def __init__(__self__, *, + role_ref: pulumi.Input['RoleRefArgs'], + 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): + """ + The set of arguments for constructing a RoleBinding resource. + :param pulumi.Input['RoleRefArgs'] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]] subjects: Subjects holds references to the objects the role applies to. + """ + pulumi.set(__self__, "role_ref", role_ref) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleBinding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subjects is not None: + pulumi.set(__self__, "subjects", subjects) + + @property + @pulumi.getter(name="roleRef") + def role_ref(self) -> pulumi.Input['RoleRefArgs']: + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + return pulumi.get(self, "role_ref") + + @role_ref.setter + def role_ref(self, value: pulumi.Input['RoleRefArgs']): + pulumi.set(self, "role_ref", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subjects(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]: + """ + Subjects holds references to the objects the role applies to. + """ + return pulumi.get(self, "subjects") + + @subjects.setter + def subjects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]): + pulumi.set(self, "subjects", value) class RoleBinding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +124,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['RoleRefArgs']] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]] subjects: Subjects holds references to the objects the role applies to. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleBindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + + :param str resource_name: The name of the resource. + :param RoleBindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleBindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + role_ref: Optional[pulumi.Input[pulumi.InputType['RoleRefArgs']]] = None, + subjects: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py index a2b5ce1dd6..47d9881b68 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleBindingList'] +__all__ = ['RoleBindingListArgs', 'RoleBindingList'] + +@pulumi.input_type +class RoleBindingListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RoleBindingList resource. + :param pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]] items: Items is a list of RoleBindings + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleBindingList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]: + """ + Items is a list of RoleBindings + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RoleBindingList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleBindingListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleBindingList is a collection of RoleBindings + + :param str resource_name: The name of the resource. + :param RoleBindingListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleBindingListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleBindingArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py index 32f2a19976..665f007b7e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleList'] +__all__ = ['RoleListArgs', 'RoleList'] + +@pulumi.input_type +class RoleListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RoleList resource. + :param pulumi.Input[Sequence[pulumi.Input['RoleArgs']]] items: Items is a list of Roles + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]: + """ + Items is a list of Roles + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RoleList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleList is a collection of Roles + + :param str resource_name: The name of the resource. + :param RoleListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py b/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py index 562552fed7..0472efa2a3 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py b/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py index 6066298a6f..e267f2fffa 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py index e666e7da8b..2e274df8f0 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py @@ -5,16 +5,104 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRole'] +__all__ = ['ClusterRoleArgs', 'ClusterRole'] + +@pulumi.input_type +class ClusterRoleArgs: + def __init__(__self__, *, + aggregation_rule: Optional[pulumi.Input['AggregationRuleArgs']] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None): + """ + The set of arguments for constructing a ClusterRole resource. + :param pulumi.Input['AggregationRuleArgs'] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]] rules: Rules holds all the PolicyRules for this ClusterRole + """ + if aggregation_rule is not None: + pulumi.set(__self__, "aggregation_rule", aggregation_rule) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRole') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if rules is not None: + pulumi.set(__self__, "rules", rules) + + @property + @pulumi.getter(name="aggregationRule") + def aggregation_rule(self) -> Optional[pulumi.Input['AggregationRuleArgs']]: + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """ + return pulumi.get(self, "aggregation_rule") + + @aggregation_rule.setter + def aggregation_rule(self, value: Optional[pulumi.Input['AggregationRuleArgs']]): + pulumi.set(self, "aggregation_rule", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]: + """ + Rules holds all the PolicyRules for this ClusterRole + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]): + pulumi.set(self, "rules", value) class ClusterRole(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +125,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]] rules: Rules holds all the PolicyRules for this ClusterRole """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ClusterRoleArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + aggregation_rule: Optional[pulumi.Input[pulumi.InputType['AggregationRuleArgs']]] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py index b173c7764d..9e16d7f4cc 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py @@ -5,16 +5,103 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleBinding'] +__all__ = ['ClusterRoleBindingArgs', 'ClusterRoleBinding'] + +@pulumi.input_type +class ClusterRoleBindingArgs: + def __init__(__self__, *, + role_ref: pulumi.Input['RoleRefArgs'], + 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): + """ + The set of arguments for constructing a ClusterRoleBinding resource. + :param pulumi.Input['RoleRefArgs'] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]] subjects: Subjects holds references to the objects the role applies to. + """ + pulumi.set(__self__, "role_ref", role_ref) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleBinding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subjects is not None: + pulumi.set(__self__, "subjects", subjects) + + @property + @pulumi.getter(name="roleRef") + def role_ref(self) -> pulumi.Input['RoleRefArgs']: + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + return pulumi.get(self, "role_ref") + + @role_ref.setter + def role_ref(self, value: pulumi.Input['RoleRefArgs']): + pulumi.set(self, "role_ref", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subjects(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]: + """ + Subjects holds references to the objects the role applies to. + """ + return pulumi.get(self, "subjects") + + @subjects.setter + def subjects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]): + pulumi.set(self, "subjects", value) class ClusterRoleBinding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +124,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['RoleRefArgs']] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]] subjects: Subjects holds references to the objects the role applies to. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleBindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleBindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleBindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + role_ref: Optional[pulumi.Input[pulumi.InputType['RoleRefArgs']]] = None, + subjects: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py index 29301388ce..d0ad12e59f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleBindingList'] +__all__ = ['ClusterRoleBindingListArgs', 'ClusterRoleBindingList'] + +@pulumi.input_type +class ClusterRoleBindingListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ClusterRoleBindingList resource. + :param pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]] items: Items is a list of ClusterRoleBindings + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleBindingList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]: + """ + Items is a list of ClusterRoleBindings + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ClusterRoleBindingList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleBindingListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleBindingListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleBindingListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterRoleBindingArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py index a2bb56edd8..6ff30d446c 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleList'] +__all__ = ['ClusterRoleListArgs', 'ClusterRoleList'] + +@pulumi.input_type +class ClusterRoleListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ClusterRoleList resource. + :param pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]] items: Items is a list of ClusterRoles + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]: + """ + Items is a list of ClusterRoles + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ClusterRoleList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterRoleArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py index 3f7d6616ce..f892afc5b9 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Role'] +__all__ = ['RoleArgs', 'Role'] + +@pulumi.input_type +class RoleArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None): + """ + The set of arguments for constructing a Role resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]] rules: Rules holds all the PolicyRules for this Role + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'Role') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if rules is not None: + pulumi.set(__self__, "rules", rules) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]: + """ + Rules holds all the PolicyRules for this Role + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]): + pulumi.set(self, "rules", value) class Role(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]] rules: Rules holds all the PolicyRules for this Role """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[RoleArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py index 6d75f2d4a8..e9b34fd4c2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py @@ -5,16 +5,103 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleBinding'] +__all__ = ['RoleBindingArgs', 'RoleBinding'] + +@pulumi.input_type +class RoleBindingArgs: + def __init__(__self__, *, + role_ref: pulumi.Input['RoleRefArgs'], + 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): + """ + The set of arguments for constructing a RoleBinding resource. + :param pulumi.Input['RoleRefArgs'] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]] subjects: Subjects holds references to the objects the role applies to. + """ + pulumi.set(__self__, "role_ref", role_ref) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleBinding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subjects is not None: + pulumi.set(__self__, "subjects", subjects) + + @property + @pulumi.getter(name="roleRef") + def role_ref(self) -> pulumi.Input['RoleRefArgs']: + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + return pulumi.get(self, "role_ref") + + @role_ref.setter + def role_ref(self, value: pulumi.Input['RoleRefArgs']): + pulumi.set(self, "role_ref", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subjects(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]: + """ + Subjects holds references to the objects the role applies to. + """ + return pulumi.get(self, "subjects") + + @subjects.setter + def subjects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]): + pulumi.set(self, "subjects", value) class RoleBinding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +124,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['RoleRefArgs']] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]] subjects: Subjects holds references to the objects the role applies to. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleBindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleBindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleBindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + role_ref: Optional[pulumi.Input[pulumi.InputType['RoleRefArgs']]] = None, + subjects: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py index bed0f1ab45..56132fbf8e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleBindingList'] +__all__ = ['RoleBindingListArgs', 'RoleBindingList'] + +@pulumi.input_type +class RoleBindingListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RoleBindingList resource. + :param pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]] items: Items is a list of RoleBindings + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleBindingList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]: + """ + Items is a list of RoleBindings + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RoleBindingList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleBindingListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleBindingListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleBindingListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleBindingArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py index 374ddfb29c..c32eae09c2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleList'] +__all__ = ['RoleListArgs', 'RoleList'] + +@pulumi.input_type +class RoleListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RoleList resource. + :param pulumi.Input[Sequence[pulumi.Input['RoleArgs']]] items: Items is a list of Roles + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]: + """ + Items is a list of Roles + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RoleList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py index 4cc29c29a9..360113910c 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py index 4cc04f0914..4a9d4a4f57 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py index 839e60ae29..50aff7cc86 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py @@ -5,16 +5,104 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRole'] +__all__ = ['ClusterRoleArgs', 'ClusterRole'] + +@pulumi.input_type +class ClusterRoleArgs: + def __init__(__self__, *, + aggregation_rule: Optional[pulumi.Input['AggregationRuleArgs']] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None): + """ + The set of arguments for constructing a ClusterRole resource. + :param pulumi.Input['AggregationRuleArgs'] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]] rules: Rules holds all the PolicyRules for this ClusterRole + """ + if aggregation_rule is not None: + pulumi.set(__self__, "aggregation_rule", aggregation_rule) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRole') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if rules is not None: + pulumi.set(__self__, "rules", rules) + + @property + @pulumi.getter(name="aggregationRule") + def aggregation_rule(self) -> Optional[pulumi.Input['AggregationRuleArgs']]: + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """ + return pulumi.get(self, "aggregation_rule") + + @aggregation_rule.setter + def aggregation_rule(self, value: Optional[pulumi.Input['AggregationRuleArgs']]): + pulumi.set(self, "aggregation_rule", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]: + """ + Rules holds all the PolicyRules for this ClusterRole + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]): + pulumi.set(self, "rules", value) class ClusterRole(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +125,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]] rules: Rules holds all the PolicyRules for this ClusterRole """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ClusterRoleArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + aggregation_rule: Optional[pulumi.Input[pulumi.InputType['AggregationRuleArgs']]] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py index e5c71af879..0fc7837bf3 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py @@ -5,16 +5,103 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleBinding'] +__all__ = ['ClusterRoleBindingArgs', 'ClusterRoleBinding'] + +@pulumi.input_type +class ClusterRoleBindingArgs: + def __init__(__self__, *, + role_ref: pulumi.Input['RoleRefArgs'], + 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): + """ + The set of arguments for constructing a ClusterRoleBinding resource. + :param pulumi.Input['RoleRefArgs'] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]] subjects: Subjects holds references to the objects the role applies to. + """ + pulumi.set(__self__, "role_ref", role_ref) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleBinding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subjects is not None: + pulumi.set(__self__, "subjects", subjects) + + @property + @pulumi.getter(name="roleRef") + def role_ref(self) -> pulumi.Input['RoleRefArgs']: + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + return pulumi.get(self, "role_ref") + + @role_ref.setter + def role_ref(self, value: pulumi.Input['RoleRefArgs']): + pulumi.set(self, "role_ref", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subjects(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]: + """ + Subjects holds references to the objects the role applies to. + """ + return pulumi.get(self, "subjects") + + @subjects.setter + def subjects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]): + pulumi.set(self, "subjects", value) class ClusterRoleBinding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +124,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['RoleRefArgs']] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]] subjects: Subjects holds references to the objects the role applies to. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleBindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleBindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleBindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + role_ref: Optional[pulumi.Input[pulumi.InputType['RoleRefArgs']]] = None, + subjects: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py index eefa4b8ab5..59cb1202f7 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleBindingList'] +__all__ = ['ClusterRoleBindingListArgs', 'ClusterRoleBindingList'] + +@pulumi.input_type +class ClusterRoleBindingListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ClusterRoleBindingList resource. + :param pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]] items: Items is a list of ClusterRoleBindings + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleBindingList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]: + """ + Items is a list of ClusterRoleBindings + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ClusterRoleBindingList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleBindingListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleBindingListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleBindingListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterRoleBindingArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py index a3d4dfefa7..498efedfec 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['ClusterRoleList'] +__all__ = ['ClusterRoleListArgs', 'ClusterRoleList'] + +@pulumi.input_type +class ClusterRoleListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a ClusterRoleList resource. + :param pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]] items: Items is a list of ClusterRoles + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'ClusterRoleList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]: + """ + Items is a list of ClusterRoles + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class ClusterRoleList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ClusterRoleListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param ClusterRoleListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterRoleArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py index 3e15d6798e..a48361df18 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py @@ -5,16 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['Role'] +__all__ = ['RoleArgs', 'Role'] + +@pulumi.input_type +class RoleArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None): + """ + The set of arguments for constructing a Role resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]] rules: Rules holds all the PolicyRules for this Role + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'Role') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if rules is not None: + pulumi.set(__self__, "rules", rules) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]: + """ + Rules holds all the PolicyRules for this Role + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]]): + pulumi.set(self, "rules", value) class Role(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object's metadata. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]] rules: Rules holds all the PolicyRules for this Role """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[RoleArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PolicyRuleArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py index 9051def087..e818994759 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py @@ -5,16 +5,103 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleBinding'] +__all__ = ['RoleBindingArgs', 'RoleBinding'] + +@pulumi.input_type +class RoleBindingArgs: + def __init__(__self__, *, + role_ref: pulumi.Input['RoleRefArgs'], + 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): + """ + The set of arguments for constructing a RoleBinding resource. + :param pulumi.Input['RoleRefArgs'] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. + :param pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]] subjects: Subjects holds references to the objects the role applies to. + """ + pulumi.set(__self__, "role_ref", role_ref) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleBinding') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if subjects is not None: + pulumi.set(__self__, "subjects", subjects) + + @property + @pulumi.getter(name="roleRef") + def role_ref(self) -> pulumi.Input['RoleRefArgs']: + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + return pulumi.get(self, "role_ref") + + @role_ref.setter + def role_ref(self, value: pulumi.Input['RoleRefArgs']): + pulumi.set(self, "role_ref", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def subjects(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]: + """ + Subjects holds references to the objects the role applies to. + """ + return pulumi.get(self, "subjects") + + @subjects.setter + def subjects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]]): + pulumi.set(self, "subjects", value) class RoleBinding(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -37,6 +124,38 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['RoleRefArgs']] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]] subjects: Subjects holds references to the objects the role applies to. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleBindingArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleBindingArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleBindingArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + role_ref: Optional[pulumi.Input[pulumi.InputType['RoleRefArgs']]] = None, + subjects: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SubjectArgs']]]]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py index e8d18f0dd3..a031d3c450 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleBindingList'] +__all__ = ['RoleBindingListArgs', 'RoleBindingList'] + +@pulumi.input_type +class RoleBindingListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RoleBindingList resource. + :param pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]] items: Items is a list of RoleBindings + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleBindingList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]: + """ + Items is a list of RoleBindings + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RoleBindingList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleBindingListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleBindingListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleBindingListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleBindingArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py index 40f86af467..ec699b4da1 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['RoleList'] +__all__ = ['RoleListArgs', 'RoleList'] + +@pulumi.input_type +class RoleListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a RoleList resource. + :param pulumi.Input[Sequence[pulumi.Input['RoleArgs']]] items: Items is a list of Roles + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard object's metadata. + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'rbac.authorization.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'RoleList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]: + """ + Items is a list of Roles + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard object's metadata. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class RoleList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard object's metadata. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: RoleListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. + + :param str resource_name: The name of the resource. + :param RoleListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(RoleListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py index e3d1b1eadb..674bcf3009 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py index a6ecf04c66..725ea1863c 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py index 46a17e176b..a3bf162a36 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py @@ -5,14 +5,133 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['PriorityClass'] +__all__ = ['PriorityClassArgs', 'PriorityClass'] + +@pulumi.input_type +class PriorityClassArgs: + def __init__(__self__, *, + value: pulumi.Input[int], + api_version: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + global_default: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + preemption_policy: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a PriorityClass resource. + :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. + """ + pulumi.set(__self__, "value", value) + if api_version is not None: + pulumi.set(__self__, "api_version", 'scheduling.k8s.io/v1') + if description is not None: + pulumi.set(__self__, "description", description) + if global_default is not None: + pulumi.set(__self__, "global_default", global_default) + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if preemption_policy is not None: + pulumi.set(__self__, "preemption_policy", preemption_policy) + + @property + @pulumi.getter + def value(self) -> pulumi.Input[int]: + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[int]): + pulumi.set(self, "value", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="globalDefault") + def global_default(self) -> Optional[pulumi.Input[bool]]: + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + return pulumi.get(self, "global_default") + + @global_default.setter + def global_default(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "global_default", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="preemptionPolicy") + def preemption_policy(self) -> Optional[pulumi.Input[str]]: + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. + """ + return pulumi.get(self, "preemption_policy") + + @preemption_policy.setter + def preemption_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "preemption_policy", value) class PriorityClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -39,6 +158,40 @@ def __init__(__self__, :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + :param str resource_name: The name of the resource. + :param PriorityClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + global_default: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + preemption_policy: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py index d07946442c..d70af39e5e 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityClassList'] +__all__ = ['PriorityClassListArgs', 'PriorityClassList'] + +@pulumi.input_type +class PriorityClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PriorityClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]] items: items is the list of PriorityClasses + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'scheduling.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]: + """ + items is the list of PriorityClasses + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PriorityClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityClassList is a collection of priority classes. + + :param str resource_name: The name of the resource. + :param PriorityClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PriorityClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py index b221c9e167..d205aee636 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py index 4a0ea91101..26bf4b8d35 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py index 72bcadfb31..9c946bb928 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py @@ -5,14 +5,133 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['PriorityClass'] +__all__ = ['PriorityClassArgs', 'PriorityClass'] + +@pulumi.input_type +class PriorityClassArgs: + def __init__(__self__, *, + value: pulumi.Input[int], + api_version: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + global_default: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + preemption_policy: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a PriorityClass resource. + :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. + """ + pulumi.set(__self__, "value", value) + if api_version is not None: + pulumi.set(__self__, "api_version", 'scheduling.k8s.io/v1alpha1') + if description is not None: + pulumi.set(__self__, "description", description) + if global_default is not None: + pulumi.set(__self__, "global_default", global_default) + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if preemption_policy is not None: + pulumi.set(__self__, "preemption_policy", preemption_policy) + + @property + @pulumi.getter + def value(self) -> pulumi.Input[int]: + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[int]): + pulumi.set(self, "value", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="globalDefault") + def global_default(self) -> Optional[pulumi.Input[bool]]: + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + return pulumi.get(self, "global_default") + + @global_default.setter + def global_default(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "global_default", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="preemptionPolicy") + def preemption_policy(self) -> Optional[pulumi.Input[str]]: + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. + """ + return pulumi.get(self, "preemption_policy") + + @preemption_policy.setter + def preemption_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "preemption_policy", value) class PriorityClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -39,6 +158,40 @@ def __init__(__self__, :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + :param str resource_name: The name of the resource. + :param PriorityClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + global_default: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + preemption_policy: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py index aab9af07fd..099601f326 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityClassList'] +__all__ = ['PriorityClassListArgs', 'PriorityClassList'] + +@pulumi.input_type +class PriorityClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PriorityClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]] items: items is the list of PriorityClasses + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'scheduling.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]: + """ + items is the list of PriorityClasses + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PriorityClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityClassList is a collection of priority classes. + + :param str resource_name: The name of the resource. + :param PriorityClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PriorityClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py index 61df0971f2..66ebd3bbf5 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py index c4e2212226..934c8d1970 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py index d4f599255f..a7154dff6b 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py @@ -5,14 +5,133 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['PriorityClass'] +__all__ = ['PriorityClassArgs', 'PriorityClass'] + +@pulumi.input_type +class PriorityClassArgs: + def __init__(__self__, *, + value: pulumi.Input[int], + api_version: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + global_default: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + preemption_policy: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a PriorityClass resource. + :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. + """ + pulumi.set(__self__, "value", value) + if api_version is not None: + pulumi.set(__self__, "api_version", 'scheduling.k8s.io/v1beta1') + if description is not None: + pulumi.set(__self__, "description", description) + if global_default is not None: + pulumi.set(__self__, "global_default", global_default) + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if preemption_policy is not None: + pulumi.set(__self__, "preemption_policy", preemption_policy) + + @property + @pulumi.getter + def value(self) -> pulumi.Input[int]: + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[int]): + pulumi.set(self, "value", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="globalDefault") + def global_default(self) -> Optional[pulumi.Input[bool]]: + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + return pulumi.get(self, "global_default") + + @global_default.setter + def global_default(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "global_default", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="preemptionPolicy") + def preemption_policy(self) -> Optional[pulumi.Input[str]]: + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. + """ + return pulumi.get(self, "preemption_policy") + + @preemption_policy.setter + def preemption_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "preemption_policy", value) class PriorityClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -39,6 +158,40 @@ def __init__(__self__, :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + :param str resource_name: The name of the resource. + :param PriorityClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + global_default: Optional[pulumi.Input[bool]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + preemption_policy: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py index 0d6466c565..c07f197364 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['PriorityClassList'] +__all__ = ['PriorityClassListArgs', 'PriorityClassList'] + +@pulumi.input_type +class PriorityClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PriorityClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]] items: items is the list of PriorityClasses + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'scheduling.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'PriorityClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]: + """ + items is the list of PriorityClasses + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PriorityClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PriorityClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PriorityClassList is a collection of priority classes. + + :param str resource_name: The name of the resource. + :param PriorityClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PriorityClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PriorityClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py index 87010e5fbd..8e070a0e2f 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py index 470c2a9503..2e1acea472 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py index 694396ad7c..240cc50bc7 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py @@ -5,17 +5,81 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['PodPreset'] +__all__ = ['PodPresetArgs', 'PodPreset'] + +@pulumi.input_type +class PodPresetArgs: + def __init__(__self__, *, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + spec: Optional[pulumi.Input['PodPresetSpecArgs']] = None): + """ + The set of arguments for constructing a PodPreset resource. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if api_version is not None: + pulumi.set(__self__, "api_version", 'settings.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodPreset') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if spec is not None: + pulumi.set(__self__, "spec", spec) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter + def spec(self) -> Optional[pulumi.Input['PodPresetSpecArgs']]: + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: Optional[pulumi.Input['PodPresetSpecArgs']]): + pulumi.set(self, "spec", value) class PodPreset(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -34,6 +98,37 @@ def __init__(__self__, :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[PodPresetArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodPreset is a policy resource that defines additional runtime requirements for a Pod. + + :param str resource_name: The name of the resource. + :param PodPresetArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodPresetArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['PodPresetSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py index 8d05e8317d..aaaf85a16b 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['PodPresetList'] +__all__ = ['PodPresetListArgs', 'PodPresetList'] + +@pulumi.input_type +class PodPresetListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['PodPresetArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a PodPresetList resource. + :param pulumi.Input[Sequence[pulumi.Input['PodPresetArgs']]] items: Items is a list of schema objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'settings.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'PodPresetList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['PodPresetArgs']]]: + """ + Items is a list of schema objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['PodPresetArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class PodPresetList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: PodPresetListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + PodPresetList is a list of PodPreset objects. + + :param str resource_name: The name of the resource. + :param PodPresetListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(PodPresetListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['PodPresetArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py index 2ef9358de7..2402f44ef5 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py index 51890a945b..c70543fa6a 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py index 8503637580..0aef36574d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSIDriver'] +__all__ = ['CSIDriverArgs', 'CSIDriver'] + +@pulumi.input_type +class CSIDriverArgs: + def __init__(__self__, *, + spec: pulumi.Input['CSIDriverSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CSIDriver resource. + :param pulumi.Input['CSIDriverSpecArgs'] spec: Specification of the CSI Driver. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSIDriver') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CSIDriverSpecArgs']: + """ + Specification of the CSI Driver. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CSIDriverSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CSIDriver(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['CSIDriverSpecArgs']] spec: Specification of the CSI Driver. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIDriverArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param CSIDriverArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIDriverArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CSIDriverSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py index bfb9423dbb..529f8ef3e2 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSIDriverList'] +__all__ = ['CSIDriverListArgs', 'CSIDriverList'] + +@pulumi.input_type +class CSIDriverListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CSIDriverList resource. + :param pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]] items: items is the list of CSIDriver + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSIDriverList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]]: + """ + items is the list of CSIDriver + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CSIDriverList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIDriverListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIDriverList is a collection of CSIDriver objects. + + :param str resource_name: The name of the resource. + :param CSIDriverListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIDriverListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CSIDriverArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py index 6b8c1c868f..955d2e264b 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSINode'] +__all__ = ['CSINodeArgs', 'CSINode'] + +@pulumi.input_type +class CSINodeArgs: + def __init__(__self__, *, + spec: pulumi.Input['CSINodeSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CSINode resource. + :param pulumi.Input['CSINodeSpecArgs'] spec: spec is the specification of CSINode + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: metadata.name must be the Kubernetes node name. + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSINode') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CSINodeSpecArgs']: + """ + spec is the specification of CSINode + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CSINodeSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + metadata.name must be the Kubernetes node name. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CSINode(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: metadata.name must be the Kubernetes node name. :param pulumi.Input[pulumi.InputType['CSINodeSpecArgs']] spec: spec is the specification of CSINode """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSINodeArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + + :param str resource_name: The name of the resource. + :param CSINodeArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSINodeArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CSINodeSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py index 13492b5606..76911dd8e7 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSINodeList'] +__all__ = ['CSINodeListArgs', 'CSINodeList'] + +@pulumi.input_type +class CSINodeListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CSINodeList resource. + :param pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]] items: items is the list of CSINode + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSINodeList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]]: + """ + items is the list of CSINode + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CSINodeList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSINodeListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSINodeList is a collection of CSINode objects. + + :param str resource_name: The name of the resource. + :param CSINodeListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSINodeListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CSINodeArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py index 09e65bdaa6..5e3deeac15 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py @@ -5,15 +5,182 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta -__all__ = ['StorageClass'] +__all__ = ['StorageClassArgs', 'StorageClass'] + +@pulumi.input_type +class StorageClassArgs: + def __init__(__self__, *, + provisioner: pulumi.Input[str], + 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, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + mount_options: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + reclaim_policy: Optional[pulumi.Input[str]] = None, + volume_binding_mode: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a StorageClass resource. + :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. + :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand + :param pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[Sequence[pulumi.Input[str]]] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. + :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + pulumi.set(__self__, "provisioner", provisioner) + if allow_volume_expansion is not None: + pulumi.set(__self__, "allow_volume_expansion", allow_volume_expansion) + if allowed_topologies is not None: + pulumi.set(__self__, "allowed_topologies", allowed_topologies) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'StorageClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if mount_options is not None: + pulumi.set(__self__, "mount_options", mount_options) + if parameters is not None: + pulumi.set(__self__, "parameters", parameters) + if reclaim_policy is not None: + pulumi.set(__self__, "reclaim_policy", reclaim_policy) + if volume_binding_mode is not None: + pulumi.set(__self__, "volume_binding_mode", volume_binding_mode) + + @property + @pulumi.getter + def provisioner(self) -> pulumi.Input[str]: + """ + Provisioner indicates the type of the provisioner. + """ + return pulumi.get(self, "provisioner") + + @provisioner.setter + def provisioner(self, value: pulumi.Input[str]): + pulumi.set(self, "provisioner", value) + + @property + @pulumi.getter(name="allowVolumeExpansion") + def allow_volume_expansion(self) -> Optional[pulumi.Input[bool]]: + """ + AllowVolumeExpansion shows whether the storage class allow volume expand + """ + return pulumi.get(self, "allow_volume_expansion") + + @allow_volume_expansion.setter + def allow_volume_expansion(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "allow_volume_expansion", value) + + @property + @pulumi.getter(name="allowedTopologies") + def allowed_topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]]: + """ + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """ + return pulumi.get(self, "allowed_topologies") + + @allowed_topologies.setter + def allowed_topologies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]]): + pulumi.set(self, "allowed_topologies", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="mountOptions") + def mount_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + """ + return pulumi.get(self, "mount_options") + + @mount_options.setter + def mount_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "mount_options", value) + + @property + @pulumi.getter + def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """ + return pulumi.get(self, "parameters") + + @parameters.setter + def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "parameters", value) + + @property + @pulumi.getter(name="reclaimPolicy") + def reclaim_policy(self) -> Optional[pulumi.Input[str]]: + """ + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """ + return pulumi.get(self, "reclaim_policy") + + @reclaim_policy.setter + def reclaim_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reclaim_policy", value) + + @property + @pulumi.getter(name="volumeBindingMode") + def volume_binding_mode(self) -> Optional[pulumi.Input[str]]: + """ + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + return pulumi.get(self, "volume_binding_mode") + + @volume_binding_mode.setter + def volume_binding_mode(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "volume_binding_mode", value) class StorageClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -48,6 +215,45 @@ def __init__(__self__, :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StorageClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + + :param str resource_name: The name of the resource. + :param StorageClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StorageClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + allow_volume_expansion: Optional[pulumi.Input[bool]] = None, + allowed_topologies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['_core.v1.TopologySelectorTermArgs']]]]] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + mount_options: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + provisioner: Optional[pulumi.Input[str]] = None, + reclaim_policy: Optional[pulumi.Input[str]] = None, + volume_binding_mode: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py index 9f7571baf3..e9585399a7 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StorageClassList'] +__all__ = ['StorageClassListArgs', 'StorageClassList'] + +@pulumi.input_type +class StorageClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a StorageClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]] items: Items is the list of StorageClasses + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'StorageClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]]: + """ + Items is the list of StorageClasses + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class StorageClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StorageClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StorageClassList is a collection of storage classes. + + :param str resource_name: The name of the resource. + :param StorageClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StorageClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StorageClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py index fa9ecddfbb..efb65e6784 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['VolumeAttachment'] +__all__ = ['VolumeAttachmentArgs', 'VolumeAttachment'] + +@pulumi.input_type +class VolumeAttachmentArgs: + def __init__(__self__, *, + spec: pulumi.Input['VolumeAttachmentSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a VolumeAttachment resource. + :param pulumi.Input['VolumeAttachmentSpecArgs'] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'VolumeAttachment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['VolumeAttachmentSpecArgs']: + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['VolumeAttachmentSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class VolumeAttachment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -38,6 +109,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['VolumeAttachmentSpecArgs']] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: VolumeAttachmentArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param VolumeAttachmentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(VolumeAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['VolumeAttachmentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py index e3771f0cfa..dd4f92845a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['VolumeAttachmentList'] +__all__ = ['VolumeAttachmentListArgs', 'VolumeAttachmentList'] + +@pulumi.input_type +class VolumeAttachmentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a VolumeAttachmentList resource. + :param pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]] items: Items is the list of VolumeAttachments + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1') + if kind is not None: + pulumi.set(__self__, "kind", 'VolumeAttachmentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]: + """ + Items is the list of VolumeAttachments + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class VolumeAttachmentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: VolumeAttachmentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + :param str resource_name: The name of the resource. + :param VolumeAttachmentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(VolumeAttachmentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeAttachmentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py b/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py index 3670d85328..90cabf0402 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/storage/v1/outputs.py b/sdk/python/pulumi_kubernetes/storage/v1/outputs.py index 2247fbeb45..716ba50984 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacity.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacity.py index 5dc432bfdc..f2f02fd38c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacity.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacity.py @@ -5,14 +5,149 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['CSIStorageCapacity'] +__all__ = ['CSIStorageCapacityArgs', 'CSIStorageCapacity'] + +@pulumi.input_type +class CSIStorageCapacityArgs: + def __init__(__self__, *, + storage_class_name: pulumi.Input[str], + api_version: Optional[pulumi.Input[str]] = None, + capacity: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + maximum_volume_size: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + node_topology: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None): + """ + The set of arguments for constructing a CSIStorageCapacity resource. + :param pulumi.Input[str] storage_class_name: The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] capacity: Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] maximum_volume_size: MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + + Objects are namespaced. + + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['_meta.v1.LabelSelectorArgs'] node_topology: NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + """ + pulumi.set(__self__, "storage_class_name", storage_class_name) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1alpha1') + if capacity is not None: + pulumi.set(__self__, "capacity", capacity) + if kind is not None: + pulumi.set(__self__, "kind", 'CSIStorageCapacity') + if maximum_volume_size is not None: + pulumi.set(__self__, "maximum_volume_size", maximum_volume_size) + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if node_topology is not None: + pulumi.set(__self__, "node_topology", node_topology) + + @property + @pulumi.getter(name="storageClassName") + def storage_class_name(self) -> pulumi.Input[str]: + """ + The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + """ + return pulumi.get(self, "storage_class_name") + + @storage_class_name.setter + def storage_class_name(self, value: pulumi.Input[str]): + pulumi.set(self, "storage_class_name", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def capacity(self) -> Optional[pulumi.Input[str]]: + """ + Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity. + """ + return pulumi.get(self, "capacity") + + @capacity.setter + def capacity(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "capacity", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter(name="maximumVolumeSize") + def maximum_volume_size(self) -> Optional[pulumi.Input[str]]: + """ + MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + """ + return pulumi.get(self, "maximum_volume_size") + + @maximum_volume_size.setter + def maximum_volume_size(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "maximum_volume_size", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + + Objects are namespaced. + + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="nodeTopology") + def node_topology(self) -> Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]: + """ + NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + """ + return pulumi.get(self, "node_topology") + + @node_topology.setter + def node_topology(self, value: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]): + pulumi.set(self, "node_topology", value) class CSIStorageCapacity(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -55,6 +190,48 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.LabelSelectorArgs']] node_topology: NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. :param pulumi.Input[str] storage_class_name: The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIStorageCapacityArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + + For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + + The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + + The producer of these objects can decide which approach is more suitable. + + They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity. + + :param str resource_name: The name of the resource. + :param CSIStorageCapacityArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIStorageCapacityArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + capacity: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + maximum_volume_size: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + node_topology: Optional[pulumi.Input[pulumi.InputType['_meta.v1.LabelSelectorArgs']]] = None, + storage_class_name: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacityList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacityList.py index 9543371df2..08514b300a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacityList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/CSIStorageCapacityList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSIStorageCapacityList'] +__all__ = ['CSIStorageCapacityListArgs', 'CSIStorageCapacityList'] + +@pulumi.input_type +class CSIStorageCapacityListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CSIStorageCapacityList resource. + :param pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]] items: Items is the list of CSIStorageCapacity objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSIStorageCapacityList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]]: + """ + Items is the list of CSIStorageCapacity objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CSIStorageCapacityList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIStorageCapacityListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + + :param str resource_name: The name of the resource. + :param CSIStorageCapacityListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIStorageCapacityListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CSIStorageCapacityArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py index 478a20e36e..281af08c62 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['VolumeAttachment'] +__all__ = ['VolumeAttachmentArgs', 'VolumeAttachment'] + +@pulumi.input_type +class VolumeAttachmentArgs: + def __init__(__self__, *, + spec: pulumi.Input['VolumeAttachmentSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a VolumeAttachment resource. + :param pulumi.Input['VolumeAttachmentSpecArgs'] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'VolumeAttachment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['VolumeAttachmentSpecArgs']: + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['VolumeAttachmentSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class VolumeAttachment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -38,6 +109,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['VolumeAttachmentSpecArgs']] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: VolumeAttachmentArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param VolumeAttachmentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(VolumeAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['VolumeAttachmentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py index bbc97bc31e..9bec9c7b66 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['VolumeAttachmentList'] +__all__ = ['VolumeAttachmentListArgs', 'VolumeAttachmentList'] + +@pulumi.input_type +class VolumeAttachmentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a VolumeAttachmentList resource. + :param pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]] items: Items is the list of VolumeAttachments + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1alpha1') + if kind is not None: + pulumi.set(__self__, "kind", 'VolumeAttachmentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]: + """ + Items is the list of VolumeAttachments + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class VolumeAttachmentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: VolumeAttachmentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + :param str resource_name: The name of the resource. + :param VolumeAttachmentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(VolumeAttachmentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeAttachmentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py index d5e92200a8..2b59a661be 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py index c4eaa77242..f0812f73fd 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py index 75bba6c8fe..cf59e7a713 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSIDriver'] +__all__ = ['CSIDriverArgs', 'CSIDriver'] + +@pulumi.input_type +class CSIDriverArgs: + def __init__(__self__, *, + spec: pulumi.Input['CSIDriverSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CSIDriver resource. + :param pulumi.Input['CSIDriverSpecArgs'] spec: Specification of the CSI Driver. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSIDriver') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CSIDriverSpecArgs']: + """ + Specification of the CSI Driver. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CSIDriverSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CSIDriver(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['CSIDriverSpecArgs']] spec: Specification of the CSI Driver. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIDriverArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param CSIDriverArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIDriverArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CSIDriverSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py index ec42c9aaaf..63f4dd0ff0 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSIDriverList'] +__all__ = ['CSIDriverListArgs', 'CSIDriverList'] + +@pulumi.input_type +class CSIDriverListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CSIDriverList resource. + :param pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]] items: items is the list of CSIDriver + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSIDriverList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]]: + """ + items is the list of CSIDriver + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CSIDriverList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIDriverListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIDriverList is a collection of CSIDriver objects. + + :param str resource_name: The name of the resource. + :param CSIDriverListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIDriverListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CSIDriverArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py index e6ea36778c..f8a6442043 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSINode'] +__all__ = ['CSINodeArgs', 'CSINode'] + +@pulumi.input_type +class CSINodeArgs: + def __init__(__self__, *, + spec: pulumi.Input['CSINodeSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a CSINode resource. + :param pulumi.Input['CSINodeSpecArgs'] spec: spec is the specification of CSINode + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: metadata.name must be the Kubernetes node name. + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSINode') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['CSINodeSpecArgs']: + """ + spec is the specification of CSINode + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['CSINodeSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + metadata.name must be the Kubernetes node name. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class CSINode(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: metadata.name must be the Kubernetes node name. :param pulumi.Input[pulumi.InputType['CSINodeSpecArgs']] spec: spec is the specification of CSINode """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSINodeArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + + :param str resource_name: The name of the resource. + :param CSINodeArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSINodeArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['CSINodeSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py index f63028627d..99f25c758e 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSINodeList'] +__all__ = ['CSINodeListArgs', 'CSINodeList'] + +@pulumi.input_type +class CSINodeListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CSINodeList resource. + :param pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]] items: items is the list of CSINode + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSINodeList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]]: + """ + items is the list of CSINode + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CSINodeList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSINodeListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSINodeList is a collection of CSINode objects. + + :param str resource_name: The name of the resource. + :param CSINodeListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSINodeListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CSINodeArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py index adc013d2c0..537dd10c29 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py @@ -5,14 +5,149 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import meta as _meta -__all__ = ['CSIStorageCapacity'] +__all__ = ['CSIStorageCapacityArgs', 'CSIStorageCapacity'] + +@pulumi.input_type +class CSIStorageCapacityArgs: + def __init__(__self__, *, + storage_class_name: pulumi.Input[str], + api_version: Optional[pulumi.Input[str]] = None, + capacity: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + maximum_volume_size: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + node_topology: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None): + """ + The set of arguments for constructing a CSIStorageCapacity resource. + :param pulumi.Input[str] storage_class_name: The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] capacity: Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity. + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] maximum_volume_size: MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + + Objects are namespaced. + + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input['_meta.v1.LabelSelectorArgs'] node_topology: NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + """ + pulumi.set(__self__, "storage_class_name", storage_class_name) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if capacity is not None: + pulumi.set(__self__, "capacity", capacity) + if kind is not None: + pulumi.set(__self__, "kind", 'CSIStorageCapacity') + if maximum_volume_size is not None: + pulumi.set(__self__, "maximum_volume_size", maximum_volume_size) + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if node_topology is not None: + pulumi.set(__self__, "node_topology", node_topology) + + @property + @pulumi.getter(name="storageClassName") + def storage_class_name(self) -> pulumi.Input[str]: + """ + The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + """ + return pulumi.get(self, "storage_class_name") + + @storage_class_name.setter + def storage_class_name(self, value: pulumi.Input[str]): + pulumi.set(self, "storage_class_name", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def capacity(self) -> Optional[pulumi.Input[str]]: + """ + Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity. + """ + return pulumi.get(self, "capacity") + + @capacity.setter + def capacity(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "capacity", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter(name="maximumVolumeSize") + def maximum_volume_size(self) -> Optional[pulumi.Input[str]]: + """ + MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + + This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + """ + return pulumi.get(self, "maximum_volume_size") + + @maximum_volume_size.setter + def maximum_volume_size(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "maximum_volume_size", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + + Objects are namespaced. + + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="nodeTopology") + def node_topology(self) -> Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]: + """ + NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + """ + return pulumi.get(self, "node_topology") + + @node_topology.setter + def node_topology(self, value: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]): + pulumi.set(self, "node_topology", value) class CSIStorageCapacity(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -55,6 +190,48 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.LabelSelectorArgs']] node_topology: NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. :param pulumi.Input[str] storage_class_name: The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIStorageCapacityArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + + For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + + The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + + The producer of these objects can decide which approach is more suitable. + + They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity. + + :param str resource_name: The name of the resource. + :param CSIStorageCapacityArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIStorageCapacityArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + capacity: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + maximum_volume_size: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + node_topology: Optional[pulumi.Input[pulumi.InputType['_meta.v1.LabelSelectorArgs']]] = None, + storage_class_name: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py index 6de51af6ef..ba78c40c13 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py @@ -5,16 +5,87 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import meta as _meta from ._inputs import * -__all__ = ['CSIStorageCapacityList'] +__all__ = ['CSIStorageCapacityListArgs', 'CSIStorageCapacityList'] + +@pulumi.input_type +class CSIStorageCapacityListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a CSIStorageCapacityList resource. + :param pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]] items: Items is the list of CSIStorageCapacity objects. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'CSIStorageCapacityList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]]: + """ + Items is the list of CSIStorageCapacity objects. + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class CSIStorageCapacityList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -35,6 +106,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CSIStorageCapacityListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + + :param str resource_name: The name of the resource. + :param CSIStorageCapacityListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CSIStorageCapacityListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CSIStorageCapacityArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py index 398d56c768..272182185c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py @@ -5,15 +5,182 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta -__all__ = ['StorageClass'] +__all__ = ['StorageClassArgs', 'StorageClass'] + +@pulumi.input_type +class StorageClassArgs: + def __init__(__self__, *, + provisioner: pulumi.Input[str], + 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, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, + mount_options: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + reclaim_policy: Optional[pulumi.Input[str]] = None, + volume_binding_mode: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a StorageClass resource. + :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. + :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand + :param pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[Sequence[pulumi.Input[str]]] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. + :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + pulumi.set(__self__, "provisioner", provisioner) + if allow_volume_expansion is not None: + pulumi.set(__self__, "allow_volume_expansion", allow_volume_expansion) + if allowed_topologies is not None: + pulumi.set(__self__, "allowed_topologies", allowed_topologies) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'StorageClass') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if mount_options is not None: + pulumi.set(__self__, "mount_options", mount_options) + if parameters is not None: + pulumi.set(__self__, "parameters", parameters) + if reclaim_policy is not None: + pulumi.set(__self__, "reclaim_policy", reclaim_policy) + if volume_binding_mode is not None: + pulumi.set(__self__, "volume_binding_mode", volume_binding_mode) + + @property + @pulumi.getter + def provisioner(self) -> pulumi.Input[str]: + """ + Provisioner indicates the type of the provisioner. + """ + return pulumi.get(self, "provisioner") + + @provisioner.setter + def provisioner(self, value: pulumi.Input[str]): + pulumi.set(self, "provisioner", value) + + @property + @pulumi.getter(name="allowVolumeExpansion") + def allow_volume_expansion(self) -> Optional[pulumi.Input[bool]]: + """ + AllowVolumeExpansion shows whether the storage class allow volume expand + """ + return pulumi.get(self, "allow_volume_expansion") + + @allow_volume_expansion.setter + def allow_volume_expansion(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "allow_volume_expansion", value) + + @property + @pulumi.getter(name="allowedTopologies") + def allowed_topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]]: + """ + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """ + return pulumi.get(self, "allowed_topologies") + + @allowed_topologies.setter + def allowed_topologies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]]): + pulumi.set(self, "allowed_topologies", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="mountOptions") + def mount_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + """ + return pulumi.get(self, "mount_options") + + @mount_options.setter + def mount_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "mount_options", value) + + @property + @pulumi.getter + def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """ + return pulumi.get(self, "parameters") + + @parameters.setter + def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "parameters", value) + + @property + @pulumi.getter(name="reclaimPolicy") + def reclaim_policy(self) -> Optional[pulumi.Input[str]]: + """ + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """ + return pulumi.get(self, "reclaim_policy") + + @reclaim_policy.setter + def reclaim_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "reclaim_policy", value) + + @property + @pulumi.getter(name="volumeBindingMode") + def volume_binding_mode(self) -> Optional[pulumi.Input[str]]: + """ + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + return pulumi.get(self, "volume_binding_mode") + + @volume_binding_mode.setter + def volume_binding_mode(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "volume_binding_mode", value) class StorageClass(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -48,6 +215,45 @@ def __init__(__self__, :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StorageClassArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + + :param str resource_name: The name of the resource. + :param StorageClassArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StorageClassArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + allow_volume_expansion: Optional[pulumi.Input[bool]] = None, + allowed_topologies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['_core.v1.TopologySelectorTermArgs']]]]] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + mount_options: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + provisioner: Optional[pulumi.Input[str]] = None, + reclaim_policy: Optional[pulumi.Input[str]] = None, + volume_binding_mode: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py index 65f18ee9c2..f1bc0a97a3 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['StorageClassList'] +__all__ = ['StorageClassListArgs', 'StorageClassList'] + +@pulumi.input_type +class StorageClassListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a StorageClassList resource. + :param pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]] items: Items is the list of StorageClasses + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'StorageClassList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]]: + """ + Items is the list of StorageClasses + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class StorageClassList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: StorageClassListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + StorageClassList is a collection of storage classes. + + :param str resource_name: The name of the resource. + :param StorageClassListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(StorageClassListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StorageClassArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py index 5d60675909..758325f5df 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['VolumeAttachment'] +__all__ = ['VolumeAttachmentArgs', 'VolumeAttachment'] + +@pulumi.input_type +class VolumeAttachmentArgs: + def __init__(__self__, *, + spec: pulumi.Input['VolumeAttachmentSpecArgs'], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None): + """ + The set of arguments for constructing a VolumeAttachment resource. + :param pulumi.Input['VolumeAttachmentSpecArgs'] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "spec", spec) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'VolumeAttachment') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def spec(self) -> pulumi.Input['VolumeAttachmentSpecArgs']: + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + return pulumi.get(self, "spec") + + @spec.setter + def spec(self, value: pulumi.Input['VolumeAttachmentSpecArgs']): + pulumi.set(self, "spec", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]: + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]): + pulumi.set(self, "metadata", value) class VolumeAttachment(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -38,6 +109,39 @@ def __init__(__self__, :param pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[pulumi.InputType['VolumeAttachmentSpecArgs']] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: VolumeAttachmentArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param VolumeAttachmentArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(VolumeAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ObjectMetaArgs']]] = None, + spec: Optional[pulumi.Input[pulumi.InputType['VolumeAttachmentSpecArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py index 4484d3093b..63b6e79d65 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py @@ -5,17 +5,88 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core from ... import meta as _meta from ._inputs import * -__all__ = ['VolumeAttachmentList'] +__all__ = ['VolumeAttachmentListArgs', 'VolumeAttachmentList'] + +@pulumi.input_type +class VolumeAttachmentListArgs: + def __init__(__self__, *, + items: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None): + """ + The set of arguments for constructing a VolumeAttachmentList resource. + :param pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]] items: Items is the list of VolumeAttachments + :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + pulumi.set(__self__, "items", items) + if api_version is not None: + pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1') + if kind is not None: + pulumi.set(__self__, "kind", 'VolumeAttachmentList') + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + + @property + @pulumi.getter + def items(self) -> pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]: + """ + Items is the list of VolumeAttachments + """ + return pulumi.get(self, "items") + + @items.setter + def items(self, value: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]): + pulumi.set(self, "items", value) + + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: + """ + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + """ + return pulumi.get(self, "api_version") + + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]: + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]): + pulumi.set(self, "metadata", value) class VolumeAttachmentList(pulumi.CustomResource): + @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, @@ -36,6 +107,37 @@ def __init__(__self__, :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: VolumeAttachmentListArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + :param str resource_name: The name of the resource. + :param VolumeAttachmentListArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(VolumeAttachmentListArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_version: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeAttachmentArgs']]]]] = None, + kind: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[pulumi.InputType['_meta.v1.ListMetaArgs']]] = None, + __props__=None, + __name__=None, + __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py index 1cc71b400a..4fd99dfe4a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from ... import core as _core from ... import meta as _meta diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py index 445c1c9628..2f2c6c43d7 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py @@ -5,7 +5,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union +from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities, _tables from . import outputs from ... import core as _core diff --git a/tests/go.mod b/tests/go.mod index 169e742190..ba78afcbd7 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -12,7 +12,7 @@ replace ( require ( github.com/pulumi/pulumi-kubernetes/provider/v2 v2.0.0 github.com/pulumi/pulumi-kubernetes/sdk/v2 v2.4.3 - github.com/pulumi/pulumi/pkg/v2 v2.23.2 - github.com/pulumi/pulumi/sdk/v2 v2.23.2 + github.com/pulumi/pulumi/pkg/v2 v2.24.1 + github.com/pulumi/pulumi/sdk/v2 v2.24.1 github.com/stretchr/testify v1.7.0 ) diff --git a/tests/go.sum b/tests/go.sum index 860d88b1a4..cc46533594 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -882,11 +882,11 @@ github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+Gx github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.23.2 h1:ru9seiGJM8By7AoDCMfkTXO0ETJz5f5Kn5AjQ2UPbI4= -github.com/pulumi/pulumi/pkg/v2 v2.23.2/go.mod h1:NIXOUdL8dp/FbWENt57+uyh00zcbF3H6sQ6GmrsrHuE= +github.com/pulumi/pulumi/pkg/v2 v2.24.1 h1:rTgUJiB3K/JwzuzGtNkEN1j6qnDzmM2w/eF6MbT9EVQ= +github.com/pulumi/pulumi/pkg/v2 v2.24.1/go.mod h1:hq6KcDEklytmMrL5aexH19GP2f5GX2IeveICJXaKHc0= github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o= -github.com/pulumi/pulumi/sdk/v2 v2.23.2 h1:7bEx7U/rpK8IKNSc+b9WfJ5f+gVkLpfWvUakbPvDBXw= -github.com/pulumi/pulumi/sdk/v2 v2.23.2/go.mod h1:sHQdzD0/cIopR5uLeoikXi1pNBv5SwA4M617VqdIA3E= +github.com/pulumi/pulumi/sdk/v2 v2.24.1 h1:bmFDjdlYinnjQu5jeR+D4+k8aQuEhxIfJ/N3nOSaYiY= +github.com/pulumi/pulumi/sdk/v2 v2.24.1/go.mod h1:sHQdzD0/cIopR5uLeoikXi1pNBv5SwA4M617VqdIA3E= github.com/qri-io/starlib v0.4.2-0.20200213133954-ff2e8cd5ef8d/go.mod h1:7DPO4domFU579Ga6E61sB9VFNaniPVwJP5C4bBCu3wA= github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=