github.com/pulumi/pulumi-kubernetes/sdk/v3@v3.30.2/go/kubernetes/node/v1beta1/runtimeClassList.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 v1beta1 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 // RuntimeClassList is a list of RuntimeClass objects. 16 type RuntimeClassList 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 a list of schema objects. 22 Items RuntimeClassTypeArrayOutput `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 list 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 // NewRuntimeClassList registers a new resource with the given unique name, arguments, and options. 30 func NewRuntimeClassList(ctx *pulumi.Context, 31 name string, args *RuntimeClassListArgs, opts ...pulumi.ResourceOption) (*RuntimeClassList, 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("node.k8s.io/v1beta1") 40 args.Kind = pulumi.StringPtr("RuntimeClassList") 41 var resource RuntimeClassList 42 err := ctx.RegisterResource("kubernetes:node.k8s.io/v1beta1:RuntimeClassList", name, args, &resource, opts...) 43 if err != nil { 44 return nil, err 45 } 46 return &resource, nil 47 } 48 49 // GetRuntimeClassList gets an existing RuntimeClassList 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 GetRuntimeClassList(ctx *pulumi.Context, 52 name string, id pulumi.IDInput, state *RuntimeClassListState, opts ...pulumi.ResourceOption) (*RuntimeClassList, error) { 53 var resource RuntimeClassList 54 err := ctx.ReadResource("kubernetes:node.k8s.io/v1beta1:RuntimeClassList", 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 RuntimeClassList resources. 62 type runtimeClassListState struct { 63 } 64 65 type RuntimeClassListState struct { 66 } 67 68 func (RuntimeClassListState) ElementType() reflect.Type { 69 return reflect.TypeOf((*runtimeClassListState)(nil)).Elem() 70 } 71 72 type runtimeClassListArgs 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 a list of schema objects. 76 Items []RuntimeClassType `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 list 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 RuntimeClassList resource. 84 type RuntimeClassListArgs 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 a list of schema objects. 88 Items RuntimeClassTypeArrayInput 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 list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 92 Metadata metav1.ListMetaPtrInput 93 } 94 95 func (RuntimeClassListArgs) ElementType() reflect.Type { 96 return reflect.TypeOf((*runtimeClassListArgs)(nil)).Elem() 97 } 98 99 type RuntimeClassListInput interface { 100 pulumi.Input 101 102 ToRuntimeClassListOutput() RuntimeClassListOutput 103 ToRuntimeClassListOutputWithContext(ctx context.Context) RuntimeClassListOutput 104 } 105 106 func (*RuntimeClassList) ElementType() reflect.Type { 107 return reflect.TypeOf((**RuntimeClassList)(nil)).Elem() 108 } 109 110 func (i *RuntimeClassList) ToRuntimeClassListOutput() RuntimeClassListOutput { 111 return i.ToRuntimeClassListOutputWithContext(context.Background()) 112 } 113 114 func (i *RuntimeClassList) ToRuntimeClassListOutputWithContext(ctx context.Context) RuntimeClassListOutput { 115 return pulumi.ToOutputWithContext(ctx, i).(RuntimeClassListOutput) 116 } 117 118 // RuntimeClassListArrayInput is an input type that accepts RuntimeClassListArray and RuntimeClassListArrayOutput values. 119 // You can construct a concrete instance of `RuntimeClassListArrayInput` via: 120 // 121 // RuntimeClassListArray{ RuntimeClassListArgs{...} } 122 type RuntimeClassListArrayInput interface { 123 pulumi.Input 124 125 ToRuntimeClassListArrayOutput() RuntimeClassListArrayOutput 126 ToRuntimeClassListArrayOutputWithContext(context.Context) RuntimeClassListArrayOutput 127 } 128 129 type RuntimeClassListArray []RuntimeClassListInput 130 131 func (RuntimeClassListArray) ElementType() reflect.Type { 132 return reflect.TypeOf((*[]*RuntimeClassList)(nil)).Elem() 133 } 134 135 func (i RuntimeClassListArray) ToRuntimeClassListArrayOutput() RuntimeClassListArrayOutput { 136 return i.ToRuntimeClassListArrayOutputWithContext(context.Background()) 137 } 138 139 func (i RuntimeClassListArray) ToRuntimeClassListArrayOutputWithContext(ctx context.Context) RuntimeClassListArrayOutput { 140 return pulumi.ToOutputWithContext(ctx, i).(RuntimeClassListArrayOutput) 141 } 142 143 // RuntimeClassListMapInput is an input type that accepts RuntimeClassListMap and RuntimeClassListMapOutput values. 144 // You can construct a concrete instance of `RuntimeClassListMapInput` via: 145 // 146 // RuntimeClassListMap{ "key": RuntimeClassListArgs{...} } 147 type RuntimeClassListMapInput interface { 148 pulumi.Input 149 150 ToRuntimeClassListMapOutput() RuntimeClassListMapOutput 151 ToRuntimeClassListMapOutputWithContext(context.Context) RuntimeClassListMapOutput 152 } 153 154 type RuntimeClassListMap map[string]RuntimeClassListInput 155 156 func (RuntimeClassListMap) ElementType() reflect.Type { 157 return reflect.TypeOf((*map[string]*RuntimeClassList)(nil)).Elem() 158 } 159 160 func (i RuntimeClassListMap) ToRuntimeClassListMapOutput() RuntimeClassListMapOutput { 161 return i.ToRuntimeClassListMapOutputWithContext(context.Background()) 162 } 163 164 func (i RuntimeClassListMap) ToRuntimeClassListMapOutputWithContext(ctx context.Context) RuntimeClassListMapOutput { 165 return pulumi.ToOutputWithContext(ctx, i).(RuntimeClassListMapOutput) 166 } 167 168 type RuntimeClassListOutput struct{ *pulumi.OutputState } 169 170 func (RuntimeClassListOutput) ElementType() reflect.Type { 171 return reflect.TypeOf((**RuntimeClassList)(nil)).Elem() 172 } 173 174 func (o RuntimeClassListOutput) ToRuntimeClassListOutput() RuntimeClassListOutput { 175 return o 176 } 177 178 func (o RuntimeClassListOutput) ToRuntimeClassListOutputWithContext(ctx context.Context) RuntimeClassListOutput { 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 RuntimeClassListOutput) ApiVersion() pulumi.StringPtrOutput { 184 return o.ApplyT(func(v *RuntimeClassList) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput) 185 } 186 187 // Items is a list of schema objects. 188 func (o RuntimeClassListOutput) Items() RuntimeClassTypeArrayOutput { 189 return o.ApplyT(func(v *RuntimeClassList) RuntimeClassTypeArrayOutput { return v.Items }).(RuntimeClassTypeArrayOutput) 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 RuntimeClassListOutput) Kind() pulumi.StringPtrOutput { 194 return o.ApplyT(func(v *RuntimeClassList) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) 195 } 196 197 // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 198 func (o RuntimeClassListOutput) Metadata() metav1.ListMetaPtrOutput { 199 return o.ApplyT(func(v *RuntimeClassList) metav1.ListMetaPtrOutput { return v.Metadata }).(metav1.ListMetaPtrOutput) 200 } 201 202 type RuntimeClassListArrayOutput struct{ *pulumi.OutputState } 203 204 func (RuntimeClassListArrayOutput) ElementType() reflect.Type { 205 return reflect.TypeOf((*[]*RuntimeClassList)(nil)).Elem() 206 } 207 208 func (o RuntimeClassListArrayOutput) ToRuntimeClassListArrayOutput() RuntimeClassListArrayOutput { 209 return o 210 } 211 212 func (o RuntimeClassListArrayOutput) ToRuntimeClassListArrayOutputWithContext(ctx context.Context) RuntimeClassListArrayOutput { 213 return o 214 } 215 216 func (o RuntimeClassListArrayOutput) Index(i pulumi.IntInput) RuntimeClassListOutput { 217 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RuntimeClassList { 218 return vs[0].([]*RuntimeClassList)[vs[1].(int)] 219 }).(RuntimeClassListOutput) 220 } 221 222 type RuntimeClassListMapOutput struct{ *pulumi.OutputState } 223 224 func (RuntimeClassListMapOutput) ElementType() reflect.Type { 225 return reflect.TypeOf((*map[string]*RuntimeClassList)(nil)).Elem() 226 } 227 228 func (o RuntimeClassListMapOutput) ToRuntimeClassListMapOutput() RuntimeClassListMapOutput { 229 return o 230 } 231 232 func (o RuntimeClassListMapOutput) ToRuntimeClassListMapOutputWithContext(ctx context.Context) RuntimeClassListMapOutput { 233 return o 234 } 235 236 func (o RuntimeClassListMapOutput) MapIndex(k pulumi.StringInput) RuntimeClassListOutput { 237 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RuntimeClassList { 238 return vs[0].(map[string]*RuntimeClassList)[vs[1].(string)] 239 }).(RuntimeClassListOutput) 240 } 241 242 func init() { 243 pulumi.RegisterInputType(reflect.TypeOf((*RuntimeClassListInput)(nil)).Elem(), &RuntimeClassList{}) 244 pulumi.RegisterInputType(reflect.TypeOf((*RuntimeClassListArrayInput)(nil)).Elem(), RuntimeClassListArray{}) 245 pulumi.RegisterInputType(reflect.TypeOf((*RuntimeClassListMapInput)(nil)).Elem(), RuntimeClassListMap{}) 246 pulumi.RegisterOutputType(RuntimeClassListOutput{}) 247 pulumi.RegisterOutputType(RuntimeClassListArrayOutput{}) 248 pulumi.RegisterOutputType(RuntimeClassListMapOutput{}) 249 }