github.com/pulumi/pulumi-kubernetes/sdk/v3@v3.30.2/go/kubernetes/networking/v1/ingressList.go (about) 1 // Code generated by pulumigen DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package v1 5 6 import ( 7 "context" 8 "reflect" 9 10 "errors" 11 metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1" 12 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 13 ) 14 15 // IngressList is a collection of Ingress. 16 type IngressList struct { 17 pulumi.CustomResourceState 18 19 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 20 ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"` 21 // items is the list of Ingress. 22 Items IngressTypeArrayOutput `pulumi:"items"` 23 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 24 Kind pulumi.StringPtrOutput `pulumi:"kind"` 25 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 26 Metadata metav1.ListMetaPtrOutput `pulumi:"metadata"` 27 } 28 29 // NewIngressList registers a new resource with the given unique name, arguments, and options. 30 func NewIngressList(ctx *pulumi.Context, 31 name string, args *IngressListArgs, opts ...pulumi.ResourceOption) (*IngressList, error) { 32 if args == nil { 33 return nil, errors.New("missing one or more required arguments") 34 } 35 36 if args.Items == nil { 37 return nil, errors.New("invalid value for required argument 'Items'") 38 } 39 args.ApiVersion = pulumi.StringPtr("networking.k8s.io/v1") 40 args.Kind = pulumi.StringPtr("IngressList") 41 var resource IngressList 42 err := ctx.RegisterResource("kubernetes:networking.k8s.io/v1:IngressList", name, args, &resource, opts...) 43 if err != nil { 44 return nil, err 45 } 46 return &resource, nil 47 } 48 49 // GetIngressList gets an existing IngressList resource's state with the given name, ID, and optional 50 // state properties that are used to uniquely qualify the lookup (nil if not required). 51 func GetIngressList(ctx *pulumi.Context, 52 name string, id pulumi.IDInput, state *IngressListState, opts ...pulumi.ResourceOption) (*IngressList, error) { 53 var resource IngressList 54 err := ctx.ReadResource("kubernetes:networking.k8s.io/v1:IngressList", name, id, state, &resource, opts...) 55 if err != nil { 56 return nil, err 57 } 58 return &resource, nil 59 } 60 61 // Input properties used for looking up and filtering IngressList resources. 62 type ingressListState struct { 63 } 64 65 type IngressListState struct { 66 } 67 68 func (IngressListState) ElementType() reflect.Type { 69 return reflect.TypeOf((*ingressListState)(nil)).Elem() 70 } 71 72 type ingressListArgs struct { 73 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 74 ApiVersion *string `pulumi:"apiVersion"` 75 // items is the list of Ingress. 76 Items []IngressType `pulumi:"items"` 77 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 78 Kind *string `pulumi:"kind"` 79 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 80 Metadata *metav1.ListMeta `pulumi:"metadata"` 81 } 82 83 // The set of arguments for constructing a IngressList resource. 84 type IngressListArgs struct { 85 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 86 ApiVersion pulumi.StringPtrInput 87 // items is the list of Ingress. 88 Items IngressTypeArrayInput 89 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 90 Kind pulumi.StringPtrInput 91 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 92 Metadata metav1.ListMetaPtrInput 93 } 94 95 func (IngressListArgs) ElementType() reflect.Type { 96 return reflect.TypeOf((*ingressListArgs)(nil)).Elem() 97 } 98 99 type IngressListInput interface { 100 pulumi.Input 101 102 ToIngressListOutput() IngressListOutput 103 ToIngressListOutputWithContext(ctx context.Context) IngressListOutput 104 } 105 106 func (*IngressList) ElementType() reflect.Type { 107 return reflect.TypeOf((**IngressList)(nil)).Elem() 108 } 109 110 func (i *IngressList) ToIngressListOutput() IngressListOutput { 111 return i.ToIngressListOutputWithContext(context.Background()) 112 } 113 114 func (i *IngressList) ToIngressListOutputWithContext(ctx context.Context) IngressListOutput { 115 return pulumi.ToOutputWithContext(ctx, i).(IngressListOutput) 116 } 117 118 // IngressListArrayInput is an input type that accepts IngressListArray and IngressListArrayOutput values. 119 // You can construct a concrete instance of `IngressListArrayInput` via: 120 // 121 // IngressListArray{ IngressListArgs{...} } 122 type IngressListArrayInput interface { 123 pulumi.Input 124 125 ToIngressListArrayOutput() IngressListArrayOutput 126 ToIngressListArrayOutputWithContext(context.Context) IngressListArrayOutput 127 } 128 129 type IngressListArray []IngressListInput 130 131 func (IngressListArray) ElementType() reflect.Type { 132 return reflect.TypeOf((*[]*IngressList)(nil)).Elem() 133 } 134 135 func (i IngressListArray) ToIngressListArrayOutput() IngressListArrayOutput { 136 return i.ToIngressListArrayOutputWithContext(context.Background()) 137 } 138 139 func (i IngressListArray) ToIngressListArrayOutputWithContext(ctx context.Context) IngressListArrayOutput { 140 return pulumi.ToOutputWithContext(ctx, i).(IngressListArrayOutput) 141 } 142 143 // IngressListMapInput is an input type that accepts IngressListMap and IngressListMapOutput values. 144 // You can construct a concrete instance of `IngressListMapInput` via: 145 // 146 // IngressListMap{ "key": IngressListArgs{...} } 147 type IngressListMapInput interface { 148 pulumi.Input 149 150 ToIngressListMapOutput() IngressListMapOutput 151 ToIngressListMapOutputWithContext(context.Context) IngressListMapOutput 152 } 153 154 type IngressListMap map[string]IngressListInput 155 156 func (IngressListMap) ElementType() reflect.Type { 157 return reflect.TypeOf((*map[string]*IngressList)(nil)).Elem() 158 } 159 160 func (i IngressListMap) ToIngressListMapOutput() IngressListMapOutput { 161 return i.ToIngressListMapOutputWithContext(context.Background()) 162 } 163 164 func (i IngressListMap) ToIngressListMapOutputWithContext(ctx context.Context) IngressListMapOutput { 165 return pulumi.ToOutputWithContext(ctx, i).(IngressListMapOutput) 166 } 167 168 type IngressListOutput struct{ *pulumi.OutputState } 169 170 func (IngressListOutput) ElementType() reflect.Type { 171 return reflect.TypeOf((**IngressList)(nil)).Elem() 172 } 173 174 func (o IngressListOutput) ToIngressListOutput() IngressListOutput { 175 return o 176 } 177 178 func (o IngressListOutput) ToIngressListOutputWithContext(ctx context.Context) IngressListOutput { 179 return o 180 } 181 182 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 183 func (o IngressListOutput) ApiVersion() pulumi.StringPtrOutput { 184 return o.ApplyT(func(v *IngressList) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput) 185 } 186 187 // items is the list of Ingress. 188 func (o IngressListOutput) Items() IngressTypeArrayOutput { 189 return o.ApplyT(func(v *IngressList) IngressTypeArrayOutput { return v.Items }).(IngressTypeArrayOutput) 190 } 191 192 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 193 func (o IngressListOutput) Kind() pulumi.StringPtrOutput { 194 return o.ApplyT(func(v *IngressList) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) 195 } 196 197 // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 198 func (o IngressListOutput) Metadata() metav1.ListMetaPtrOutput { 199 return o.ApplyT(func(v *IngressList) metav1.ListMetaPtrOutput { return v.Metadata }).(metav1.ListMetaPtrOutput) 200 } 201 202 type IngressListArrayOutput struct{ *pulumi.OutputState } 203 204 func (IngressListArrayOutput) ElementType() reflect.Type { 205 return reflect.TypeOf((*[]*IngressList)(nil)).Elem() 206 } 207 208 func (o IngressListArrayOutput) ToIngressListArrayOutput() IngressListArrayOutput { 209 return o 210 } 211 212 func (o IngressListArrayOutput) ToIngressListArrayOutputWithContext(ctx context.Context) IngressListArrayOutput { 213 return o 214 } 215 216 func (o IngressListArrayOutput) Index(i pulumi.IntInput) IngressListOutput { 217 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IngressList { 218 return vs[0].([]*IngressList)[vs[1].(int)] 219 }).(IngressListOutput) 220 } 221 222 type IngressListMapOutput struct{ *pulumi.OutputState } 223 224 func (IngressListMapOutput) ElementType() reflect.Type { 225 return reflect.TypeOf((*map[string]*IngressList)(nil)).Elem() 226 } 227 228 func (o IngressListMapOutput) ToIngressListMapOutput() IngressListMapOutput { 229 return o 230 } 231 232 func (o IngressListMapOutput) ToIngressListMapOutputWithContext(ctx context.Context) IngressListMapOutput { 233 return o 234 } 235 236 func (o IngressListMapOutput) MapIndex(k pulumi.StringInput) IngressListOutput { 237 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IngressList { 238 return vs[0].(map[string]*IngressList)[vs[1].(string)] 239 }).(IngressListOutput) 240 } 241 242 func init() { 243 pulumi.RegisterInputType(reflect.TypeOf((*IngressListInput)(nil)).Elem(), &IngressList{}) 244 pulumi.RegisterInputType(reflect.TypeOf((*IngressListArrayInput)(nil)).Elem(), IngressListArray{}) 245 pulumi.RegisterInputType(reflect.TypeOf((*IngressListMapInput)(nil)).Elem(), IngressListMap{}) 246 pulumi.RegisterOutputType(IngressListOutput{}) 247 pulumi.RegisterOutputType(IngressListArrayOutput{}) 248 pulumi.RegisterOutputType(IngressListMapOutput{}) 249 }