generated from pulumi/pulumi-tf-provider-boilerplate
/
getSoftwareSource.go
287 lines (247 loc) · 13.1 KB
/
getSoftwareSource.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package osmanagementhub
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides details about a specific Software Source resource in Oracle Cloud Infrastructure Os Management Hub service.
//
// Gets information about the specified software source.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagementHub"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := OsManagementHub.GetSoftwareSource(ctx, &osmanagementhub.GetSoftwareSourceArgs{
// SoftwareSourceId: testSoftwareSourceOciOsManagementHubSoftwareSource.Id,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func LookupSoftwareSource(ctx *pulumi.Context, args *LookupSoftwareSourceArgs, opts ...pulumi.InvokeOption) (*LookupSoftwareSourceResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSoftwareSourceResult
err := ctx.Invoke("oci:OsManagementHub/getSoftwareSource:getSoftwareSource", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getSoftwareSource.
type LookupSoftwareSourceArgs struct {
// The software source OCID.
SoftwareSourceId string `pulumi:"softwareSourceId"`
}
// A collection of values returned by getSoftwareSource.
type LookupSoftwareSourceResult struct {
// The architecture type supported by the software source.
ArchType string `pulumi:"archType"`
// Possible availabilities of a software source.
Availability string `pulumi:"availability"`
// The yum repository checksum type used by this software source.
ChecksumType string `pulumi:"checksumType"`
// The OCID of the tenancy containing the software source.
CompartmentId string `pulumi:"compartmentId"`
// Used to apply filters to a VendorSoftwareSource to create/update CustomSoftwareSources.
CustomSoftwareSourceFilters []GetSoftwareSourceCustomSoftwareSourceFilter `pulumi:"customSoftwareSourceFilters"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// Information specified by the user about the software source.
Description string `pulumi:"description"`
// User friendly name.
DisplayName string `pulumi:"displayName"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// Fingerprint of the GPG key for this software source.
GpgKeyFingerprint string `pulumi:"gpgKeyFingerprint"`
// ID of the GPG key for this software source.
GpgKeyId string `pulumi:"gpgKeyId"`
// URL of the GPG key for this software source.
GpgKeyUrl string `pulumi:"gpgKeyUrl"`
// The OCID of the resource that is immutable on creation.
Id string `pulumi:"id"`
// Indicates whether service should automatically update the custom software source for the user.
IsAutomaticallyUpdated bool `pulumi:"isAutomaticallyUpdated"`
// The OS family the software source belongs to.
OsFamily string `pulumi:"osFamily"`
// Number of packages.
PackageCount string `pulumi:"packageCount"`
// The Repo ID for the software source.
RepoId string `pulumi:"repoId"`
SoftwareSourceId string `pulumi:"softwareSourceId"`
// Type of the software source.
SoftwareSourceType string `pulumi:"softwareSourceType"`
// The version to assign to this custom software source.
SoftwareSourceVersion string `pulumi:"softwareSourceVersion"`
// The current state of the software source.
State string `pulumi:"state"`
// System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
SystemTags map[string]interface{} `pulumi:"systemTags"`
// The date and time the software source was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeCreated string `pulumi:"timeCreated"`
// URL for the repository.
Url string `pulumi:"url"`
// Name of the vendor providing the software source.
VendorName string `pulumi:"vendorName"`
// List of vendor software sources.
VendorSoftwareSources []GetSoftwareSourceVendorSoftwareSource `pulumi:"vendorSoftwareSources"`
}
func LookupSoftwareSourceOutput(ctx *pulumi.Context, args LookupSoftwareSourceOutputArgs, opts ...pulumi.InvokeOption) LookupSoftwareSourceResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupSoftwareSourceResult, error) {
args := v.(LookupSoftwareSourceArgs)
r, err := LookupSoftwareSource(ctx, &args, opts...)
var s LookupSoftwareSourceResult
if r != nil {
s = *r
}
return s, err
}).(LookupSoftwareSourceResultOutput)
}
// A collection of arguments for invoking getSoftwareSource.
type LookupSoftwareSourceOutputArgs struct {
// The software source OCID.
SoftwareSourceId pulumi.StringInput `pulumi:"softwareSourceId"`
}
func (LookupSoftwareSourceOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSoftwareSourceArgs)(nil)).Elem()
}
// A collection of values returned by getSoftwareSource.
type LookupSoftwareSourceResultOutput struct{ *pulumi.OutputState }
func (LookupSoftwareSourceResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSoftwareSourceResult)(nil)).Elem()
}
func (o LookupSoftwareSourceResultOutput) ToLookupSoftwareSourceResultOutput() LookupSoftwareSourceResultOutput {
return o
}
func (o LookupSoftwareSourceResultOutput) ToLookupSoftwareSourceResultOutputWithContext(ctx context.Context) LookupSoftwareSourceResultOutput {
return o
}
// The architecture type supported by the software source.
func (o LookupSoftwareSourceResultOutput) ArchType() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.ArchType }).(pulumi.StringOutput)
}
// Possible availabilities of a software source.
func (o LookupSoftwareSourceResultOutput) Availability() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.Availability }).(pulumi.StringOutput)
}
// The yum repository checksum type used by this software source.
func (o LookupSoftwareSourceResultOutput) ChecksumType() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.ChecksumType }).(pulumi.StringOutput)
}
// The OCID of the tenancy containing the software source.
func (o LookupSoftwareSourceResultOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.CompartmentId }).(pulumi.StringOutput)
}
// Used to apply filters to a VendorSoftwareSource to create/update CustomSoftwareSources.
func (o LookupSoftwareSourceResultOutput) CustomSoftwareSourceFilters() GetSoftwareSourceCustomSoftwareSourceFilterArrayOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) []GetSoftwareSourceCustomSoftwareSourceFilter {
return v.CustomSoftwareSourceFilters
}).(GetSoftwareSourceCustomSoftwareSourceFilterArrayOutput)
}
// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
func (o LookupSoftwareSourceResultOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) map[string]interface{} { return v.DefinedTags }).(pulumi.MapOutput)
}
// Information specified by the user about the software source.
func (o LookupSoftwareSourceResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.Description }).(pulumi.StringOutput)
}
// User friendly name.
func (o LookupSoftwareSourceResultOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.DisplayName }).(pulumi.StringOutput)
}
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
func (o LookupSoftwareSourceResultOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) map[string]interface{} { return v.FreeformTags }).(pulumi.MapOutput)
}
// Fingerprint of the GPG key for this software source.
func (o LookupSoftwareSourceResultOutput) GpgKeyFingerprint() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.GpgKeyFingerprint }).(pulumi.StringOutput)
}
// ID of the GPG key for this software source.
func (o LookupSoftwareSourceResultOutput) GpgKeyId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.GpgKeyId }).(pulumi.StringOutput)
}
// URL of the GPG key for this software source.
func (o LookupSoftwareSourceResultOutput) GpgKeyUrl() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.GpgKeyUrl }).(pulumi.StringOutput)
}
// The OCID of the resource that is immutable on creation.
func (o LookupSoftwareSourceResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.Id }).(pulumi.StringOutput)
}
// Indicates whether service should automatically update the custom software source for the user.
func (o LookupSoftwareSourceResultOutput) IsAutomaticallyUpdated() pulumi.BoolOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) bool { return v.IsAutomaticallyUpdated }).(pulumi.BoolOutput)
}
// The OS family the software source belongs to.
func (o LookupSoftwareSourceResultOutput) OsFamily() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.OsFamily }).(pulumi.StringOutput)
}
// Number of packages.
func (o LookupSoftwareSourceResultOutput) PackageCount() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.PackageCount }).(pulumi.StringOutput)
}
// The Repo ID for the software source.
func (o LookupSoftwareSourceResultOutput) RepoId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.RepoId }).(pulumi.StringOutput)
}
func (o LookupSoftwareSourceResultOutput) SoftwareSourceId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.SoftwareSourceId }).(pulumi.StringOutput)
}
// Type of the software source.
func (o LookupSoftwareSourceResultOutput) SoftwareSourceType() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.SoftwareSourceType }).(pulumi.StringOutput)
}
// The version to assign to this custom software source.
func (o LookupSoftwareSourceResultOutput) SoftwareSourceVersion() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.SoftwareSourceVersion }).(pulumi.StringOutput)
}
// The current state of the software source.
func (o LookupSoftwareSourceResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.State }).(pulumi.StringOutput)
}
// System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
func (o LookupSoftwareSourceResultOutput) SystemTags() pulumi.MapOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) map[string]interface{} { return v.SystemTags }).(pulumi.MapOutput)
}
// The date and time the software source was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
func (o LookupSoftwareSourceResultOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.TimeCreated }).(pulumi.StringOutput)
}
// URL for the repository.
func (o LookupSoftwareSourceResultOutput) Url() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.Url }).(pulumi.StringOutput)
}
// Name of the vendor providing the software source.
func (o LookupSoftwareSourceResultOutput) VendorName() pulumi.StringOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) string { return v.VendorName }).(pulumi.StringOutput)
}
// List of vendor software sources.
func (o LookupSoftwareSourceResultOutput) VendorSoftwareSources() GetSoftwareSourceVendorSoftwareSourceArrayOutput {
return o.ApplyT(func(v LookupSoftwareSourceResult) []GetSoftwareSourceVendorSoftwareSource {
return v.VendorSoftwareSources
}).(GetSoftwareSourceVendorSoftwareSourceArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupSoftwareSourceResultOutput{})
}