github.com/pulumi/pulumi-kubernetes/sdk/v3@v3.30.2/go/kubernetes/apps/v1beta2/replicaSetList.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 v1beta2 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 // ReplicaSetList is a collection of ReplicaSets. 16 type ReplicaSetList 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 // List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller 22 Items ReplicaSetTypeArrayOutput `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#types-kinds 26 Metadata metav1.ListMetaPtrOutput `pulumi:"metadata"` 27 } 28 29 // NewReplicaSetList registers a new resource with the given unique name, arguments, and options. 30 func NewReplicaSetList(ctx *pulumi.Context, 31 name string, args *ReplicaSetListArgs, opts ...pulumi.ResourceOption) (*ReplicaSetList, 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("apps/v1beta2") 40 args.Kind = pulumi.StringPtr("ReplicaSetList") 41 var resource ReplicaSetList 42 err := ctx.RegisterResource("kubernetes:apps/v1beta2:ReplicaSetList", name, args, &resource, opts...) 43 if err != nil { 44 return nil, err 45 } 46 return &resource, nil 47 } 48 49 // GetReplicaSetList gets an existing ReplicaSetList 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 GetReplicaSetList(ctx *pulumi.Context, 52 name string, id pulumi.IDInput, state *ReplicaSetListState, opts ...pulumi.ResourceOption) (*ReplicaSetList, error) { 53 var resource ReplicaSetList 54 err := ctx.ReadResource("kubernetes:apps/v1beta2:ReplicaSetList", 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 ReplicaSetList resources. 62 type replicaSetListState struct { 63 } 64 65 type ReplicaSetListState struct { 66 } 67 68 func (ReplicaSetListState) ElementType() reflect.Type { 69 return reflect.TypeOf((*replicaSetListState)(nil)).Elem() 70 } 71 72 type replicaSetListArgs 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 // List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller 76 Items []ReplicaSetType `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#types-kinds 80 Metadata *metav1.ListMeta `pulumi:"metadata"` 81 } 82 83 // The set of arguments for constructing a ReplicaSetList resource. 84 type ReplicaSetListArgs 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 // List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller 88 Items ReplicaSetTypeArrayInput 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#types-kinds 92 Metadata metav1.ListMetaPtrInput 93 } 94 95 func (ReplicaSetListArgs) ElementType() reflect.Type { 96 return reflect.TypeOf((*replicaSetListArgs)(nil)).Elem() 97 } 98 99 type ReplicaSetListInput interface { 100 pulumi.Input 101 102 ToReplicaSetListOutput() ReplicaSetListOutput 103 ToReplicaSetListOutputWithContext(ctx context.Context) ReplicaSetListOutput 104 } 105 106 func (*ReplicaSetList) ElementType() reflect.Type { 107 return reflect.TypeOf((**ReplicaSetList)(nil)).Elem() 108 } 109 110 func (i *ReplicaSetList) ToReplicaSetListOutput() ReplicaSetListOutput { 111 return i.ToReplicaSetListOutputWithContext(context.Background()) 112 } 113 114 func (i *ReplicaSetList) ToReplicaSetListOutputWithContext(ctx context.Context) ReplicaSetListOutput { 115 return pulumi.ToOutputWithContext(ctx, i).(ReplicaSetListOutput) 116 } 117 118 // ReplicaSetListArrayInput is an input type that accepts ReplicaSetListArray and ReplicaSetListArrayOutput values. 119 // You can construct a concrete instance of `ReplicaSetListArrayInput` via: 120 // 121 // ReplicaSetListArray{ ReplicaSetListArgs{...} } 122 type ReplicaSetListArrayInput interface { 123 pulumi.Input 124 125 ToReplicaSetListArrayOutput() ReplicaSetListArrayOutput 126 ToReplicaSetListArrayOutputWithContext(context.Context) ReplicaSetListArrayOutput 127 } 128 129 type ReplicaSetListArray []ReplicaSetListInput 130 131 func (ReplicaSetListArray) ElementType() reflect.Type { 132 return reflect.TypeOf((*[]*ReplicaSetList)(nil)).Elem() 133 } 134 135 func (i ReplicaSetListArray) ToReplicaSetListArrayOutput() ReplicaSetListArrayOutput { 136 return i.ToReplicaSetListArrayOutputWithContext(context.Background()) 137 } 138 139 func (i ReplicaSetListArray) ToReplicaSetListArrayOutputWithContext(ctx context.Context) ReplicaSetListArrayOutput { 140 return pulumi.ToOutputWithContext(ctx, i).(ReplicaSetListArrayOutput) 141 } 142 143 // ReplicaSetListMapInput is an input type that accepts ReplicaSetListMap and ReplicaSetListMapOutput values. 144 // You can construct a concrete instance of `ReplicaSetListMapInput` via: 145 // 146 // ReplicaSetListMap{ "key": ReplicaSetListArgs{...} } 147 type ReplicaSetListMapInput interface { 148 pulumi.Input 149 150 ToReplicaSetListMapOutput() ReplicaSetListMapOutput 151 ToReplicaSetListMapOutputWithContext(context.Context) ReplicaSetListMapOutput 152 } 153 154 type ReplicaSetListMap map[string]ReplicaSetListInput 155 156 func (ReplicaSetListMap) ElementType() reflect.Type { 157 return reflect.TypeOf((*map[string]*ReplicaSetList)(nil)).Elem() 158 } 159 160 func (i ReplicaSetListMap) ToReplicaSetListMapOutput() ReplicaSetListMapOutput { 161 return i.ToReplicaSetListMapOutputWithContext(context.Background()) 162 } 163 164 func (i ReplicaSetListMap) ToReplicaSetListMapOutputWithContext(ctx context.Context) ReplicaSetListMapOutput { 165 return pulumi.ToOutputWithContext(ctx, i).(ReplicaSetListMapOutput) 166 } 167 168 type ReplicaSetListOutput struct{ *pulumi.OutputState } 169 170 func (ReplicaSetListOutput) ElementType() reflect.Type { 171 return reflect.TypeOf((**ReplicaSetList)(nil)).Elem() 172 } 173 174 func (o ReplicaSetListOutput) ToReplicaSetListOutput() ReplicaSetListOutput { 175 return o 176 } 177 178 func (o ReplicaSetListOutput) ToReplicaSetListOutputWithContext(ctx context.Context) ReplicaSetListOutput { 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 ReplicaSetListOutput) ApiVersion() pulumi.StringPtrOutput { 184 return o.ApplyT(func(v *ReplicaSetList) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput) 185 } 186 187 // List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller 188 func (o ReplicaSetListOutput) Items() ReplicaSetTypeArrayOutput { 189 return o.ApplyT(func(v *ReplicaSetList) ReplicaSetTypeArrayOutput { return v.Items }).(ReplicaSetTypeArrayOutput) 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 ReplicaSetListOutput) Kind() pulumi.StringPtrOutput { 194 return o.ApplyT(func(v *ReplicaSetList) 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#types-kinds 198 func (o ReplicaSetListOutput) Metadata() metav1.ListMetaPtrOutput { 199 return o.ApplyT(func(v *ReplicaSetList) metav1.ListMetaPtrOutput { return v.Metadata }).(metav1.ListMetaPtrOutput) 200 } 201 202 type ReplicaSetListArrayOutput struct{ *pulumi.OutputState } 203 204 func (ReplicaSetListArrayOutput) ElementType() reflect.Type { 205 return reflect.TypeOf((*[]*ReplicaSetList)(nil)).Elem() 206 } 207 208 func (o ReplicaSetListArrayOutput) ToReplicaSetListArrayOutput() ReplicaSetListArrayOutput { 209 return o 210 } 211 212 func (o ReplicaSetListArrayOutput) ToReplicaSetListArrayOutputWithContext(ctx context.Context) ReplicaSetListArrayOutput { 213 return o 214 } 215 216 func (o ReplicaSetListArrayOutput) Index(i pulumi.IntInput) ReplicaSetListOutput { 217 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ReplicaSetList { 218 return vs[0].([]*ReplicaSetList)[vs[1].(int)] 219 }).(ReplicaSetListOutput) 220 } 221 222 type ReplicaSetListMapOutput struct{ *pulumi.OutputState } 223 224 func (ReplicaSetListMapOutput) ElementType() reflect.Type { 225 return reflect.TypeOf((*map[string]*ReplicaSetList)(nil)).Elem() 226 } 227 228 func (o ReplicaSetListMapOutput) ToReplicaSetListMapOutput() ReplicaSetListMapOutput { 229 return o 230 } 231 232 func (o ReplicaSetListMapOutput) ToReplicaSetListMapOutputWithContext(ctx context.Context) ReplicaSetListMapOutput { 233 return o 234 } 235 236 func (o ReplicaSetListMapOutput) MapIndex(k pulumi.StringInput) ReplicaSetListOutput { 237 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ReplicaSetList { 238 return vs[0].(map[string]*ReplicaSetList)[vs[1].(string)] 239 }).(ReplicaSetListOutput) 240 } 241 242 func init() { 243 pulumi.RegisterInputType(reflect.TypeOf((*ReplicaSetListInput)(nil)).Elem(), &ReplicaSetList{}) 244 pulumi.RegisterInputType(reflect.TypeOf((*ReplicaSetListArrayInput)(nil)).Elem(), ReplicaSetListArray{}) 245 pulumi.RegisterInputType(reflect.TypeOf((*ReplicaSetListMapInput)(nil)).Elem(), ReplicaSetListMap{}) 246 pulumi.RegisterOutputType(ReplicaSetListOutput{}) 247 pulumi.RegisterOutputType(ReplicaSetListArrayOutput{}) 248 pulumi.RegisterOutputType(ReplicaSetListMapOutput{}) 249 }