Skip to content

Commit 12b8d6a

Browse files
Remove LA notices
1 parent bc65eeb commit 12b8d6a

File tree

3 files changed

+41
-15
lines changed

3 files changed

+41
-15
lines changed

image_sharegroups_consumer.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ type ImageShareGroupUpdateTokenOptions struct {
136136

137137
// ImageShareGroupListTokens lists information about all the ImageShareGroupTokens created by the user.
138138
// The tokens themselves are only visible once upon creation.
139+
// NOTE: May not currently be available to all users and can only be used with v4beta.
139140
func (c *Client) ImageShareGroupListTokens(ctx context.Context, opts *ListOptions) ([]ImageShareGroupToken, error) {
140141
return getPaginatedResults[ImageShareGroupToken](
141142
ctx,
@@ -147,6 +148,7 @@ func (c *Client) ImageShareGroupListTokens(ctx context.Context, opts *ListOption
147148

148149
// ImageShareGroupGetToken gets information about the specified ImageShareGroupToken created by the user.
149150
// the tokens themselves are only visible once upon creation.
151+
// NOTE: May not currently be available to all users and can only be used with v4beta.
150152
func (c *Client) ImageShareGroupGetToken(ctx context.Context, tokenUUID string) (*ImageShareGroupToken, error) {
151153
return doGETRequest[ImageShareGroupToken](
152154
ctx,
@@ -157,6 +159,7 @@ func (c *Client) ImageShareGroupGetToken(ctx context.Context, tokenUUID string)
157159

158160
// ImageShareGroupCreateToken allows the consumer to create a single-use ImageShareGroup membership
159161
// token for a specific ImageShareGroup owned by the producer.
162+
// NOTE: May not currently be available to all users and can only be used with v4beta.
160163
func (c *Client) ImageShareGroupCreateToken(ctx context.Context, opts ImageShareGroupCreateTokenOptions) (*ImageShareGroupCreateTokenResponse, error) {
161164
return doPOSTRequest[ImageShareGroupCreateTokenResponse](
162165
ctx,
@@ -167,6 +170,7 @@ func (c *Client) ImageShareGroupCreateToken(ctx context.Context, opts ImageShare
167170
}
168171

169172
// ImageShareGroupUpdateToken allows the consumer to update an ImageShareGroupToken's label.
173+
// NOTE: May not currently be available to all users and can only be used with v4beta.
170174
func (c *Client) ImageShareGroupUpdateToken(ctx context.Context, tokenUUID string, opts ImageShareGroupUpdateTokenOptions) (*ImageShareGroupToken, error) {
171175
return doPUTRequest[ImageShareGroupToken](
172176
ctx,
@@ -178,6 +182,7 @@ func (c *Client) ImageShareGroupUpdateToken(ctx context.Context, tokenUUID strin
178182

179183
// ImageShareGroupRemoveToken allows the consumer to remove an individual ImageShareGroupToken from an ImageShareGroup
180184
// this token has been accepted into.
185+
// NOTE: May not currently be available to all users and can only be used with v4beta.
181186
func (c *Client) ImageShareGroupRemoveToken(ctx context.Context, tokenUUID string) error {
182187
return doDELETERequest(
183188
ctx,
@@ -188,6 +193,7 @@ func (c *Client) ImageShareGroupRemoveToken(ctx context.Context, tokenUUID strin
188193

189194
// ImageShareGroupGetByToken gets information about the ImageShareGroup that the
190195
// consumer's specified token has been accepted into.
196+
// NOTE: May not currently be available to all users and can only be used with v4beta.
191197
func (c *Client) ImageShareGroupGetByToken(ctx context.Context, tokenUUID string) (*ConsumerImageShareGroup, error) {
192198
return doGETRequest[ConsumerImageShareGroup](
193199
ctx,
@@ -198,6 +204,7 @@ func (c *Client) ImageShareGroupGetByToken(ctx context.Context, tokenUUID string
198204

199205
// ImageShareGroupGetImageShareEntriesByToken lists the im_ImageShare entriess in the ImageShareGroup that the
200206
// consumer's specified token has been accepted into.
207+
// NOTE: May not currently be available to all users and can only be used with v4beta.
201208
func (c *Client) ImageShareGroupGetImageShareEntriesByToken(ctx context.Context, tokenUUID string, opts *ListOptions) ([]ImageShareEntry, error) {
202209
return getPaginatedResults[ImageShareEntry](
203210
ctx,

image_sharegroups_producer.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ type ImageShareGroupAddMemberOptions struct {
126126
}
127127

128128
// ListImageShareGroups lists all ImageShareGroups owned by the producer.
129+
// NOTE: May not currently be available to all users and can only be used with v4beta.
129130
func (c *Client) ListImageShareGroups(
130131
ctx context.Context,
131132
opts *ListOptions,
@@ -140,6 +141,7 @@ func (c *Client) ListImageShareGroups(
140141

141142
// ListImageShareGroupsContainingPrivateImage lists all current ImageShareGroups owned by the producer where
142143
// the given private image is present.
144+
// NOTE: May not currently be available to all users and can only be used with v4beta.
143145
func (c *Client) ListImageShareGroupsContainingPrivateImage(
144146
ctx context.Context,
145147
privateImageID string,
@@ -154,6 +156,7 @@ func (c *Client) ListImageShareGroupsContainingPrivateImage(
154156
}
155157

156158
// GetImageShareGroup gets the specified ImageShareGroup owned by the producer.
159+
// NOTE: May not currently be available to all users and can only be used with v4beta.
157160
func (c *Client) GetImageShareGroup(
158161
ctx context.Context,
159162
imageShareGroupID int,
@@ -166,6 +169,7 @@ func (c *Client) GetImageShareGroup(
166169
}
167170

168171
// CreateImageShareGroup allows the producer to create a new ImageShareGroup.
172+
// NOTE: May not currently be available to all users and can only be used with v4beta.
169173
func (c *Client) CreateImageShareGroup(
170174
ctx context.Context,
171175
opts ImageShareGroupCreateOptions,
@@ -179,6 +183,7 @@ func (c *Client) CreateImageShareGroup(
179183
}
180184

181185
// UpdateImageShareGroup allows the producer to update an existing ImageShareGroup's description and label.
186+
// NOTE: May not currently be available to all users and can only be used with v4beta.
182187
func (c *Client) UpdateImageShareGroup(
183188
ctx context.Context,
184189
imageShareGroupID int,
@@ -193,6 +198,7 @@ func (c *Client) UpdateImageShareGroup(
193198
}
194199

195200
// DeleteImageShareGroup deletes the specified ImageShareGroup owned by the producer.
201+
// NOTE: May not currently be available to all users and can only be used with v4beta.
196202
func (c *Client) DeleteImageShareGroup(ctx context.Context, imageShareGroupID int) error {
197203
return doDELETERequest(
198204
ctx,
@@ -202,6 +208,7 @@ func (c *Client) DeleteImageShareGroup(ctx context.Context, imageShareGroupID in
202208
}
203209

204210
// ImageShareGroupListImageShareEntries lists the im_ImageShare entries of a specified ImageShareGroup owned by the producer.
211+
// NOTE: May not currently be available to all users and can only be used with v4beta.
205212
func (c *Client) ImageShareGroupListImageShareEntries(
206213
ctx context.Context,
207214
imageShareGroupID int,
@@ -216,6 +223,7 @@ func (c *Client) ImageShareGroupListImageShareEntries(
216223
}
217224

218225
// ImageShareGroupAddImages allows the producer to add images to a specific ImageShareGroup.
226+
// NOTE: May not currently be available to all users and can only be used with v4beta.
219227
func (c *Client) ImageShareGroupAddImages(
220228
ctx context.Context,
221229
imageShareGroupID int,
@@ -231,6 +239,7 @@ func (c *Client) ImageShareGroupAddImages(
231239
}
232240

233241
// ImageShareGroupUpdateImageShareEntry allows the producer to update the description and label of a specified ImageShareEntry within the specified ImageShareGroup.
242+
// NOTE: May not currently be available to all users and can only be used with v4beta.
234243
func (c *Client) ImageShareGroupUpdateImageShareEntry(
235244
ctx context.Context,
236245
imageShareGroupID int,
@@ -246,6 +255,7 @@ func (c *Client) ImageShareGroupUpdateImageShareEntry(
246255
}
247256

248257
// ImageShareGroupRemoveImage allows the producer to remove access to an image within an ImageShareGroup owned by the producer.
258+
// NOTE: May not currently be available to all users and can only be used with v4beta.
249259
func (c *Client) ImageShareGroupRemoveImage(
250260
ctx context.Context,
251261
imageShareGroupID int,
@@ -259,6 +269,7 @@ func (c *Client) ImageShareGroupRemoveImage(
259269
}
260270

261271
// ImageShareGroupListMembers lists the ImageShareGroupMembers of the provided ImageShareGroup owned by the producer.
272+
// NOTE: May not currently be available to all users and can only be used with v4beta.
262273
func (c *Client) ImageShareGroupListMembers(
263274
ctx context.Context,
264275
imageShareGroupID int,
@@ -274,6 +285,7 @@ func (c *Client) ImageShareGroupListMembers(
274285

275286
// ImageShareGroupGetMember gets the details of the specified ImageShareGroupMember in the specified
276287
// ImageShareGroup owned by the producer.
288+
// NOTE: May not currently be available to all users and can only be used with v4beta.
277289
func (c *Client) ImageShareGroupGetMember(
278290
ctx context.Context,
279291
imageShareGroupID int,
@@ -287,6 +299,7 @@ func (c *Client) ImageShareGroupGetMember(
287299
}
288300

289301
// ImageShareGroupAddMember allows the producer to add members to a specific ImageShareGroup.
302+
// NOTE: May not currently be available to all users and can only be used with v4beta.
290303
func (c *Client) ImageShareGroupAddMember(
291304
ctx context.Context,
292305
imageShareGroupID int,
@@ -302,6 +315,7 @@ func (c *Client) ImageShareGroupAddMember(
302315

303316
// ImageShareGroupUpdateMember allows the producer to update the label associated with the specified
304317
// ImageShareGroupMember in the specified ImageShareGroup owned by the producer.
318+
// NOTE: May not currently be available to all users and can only be used with v4beta.
305319
func (c *Client) ImageShareGroupUpdateMember(
306320
ctx context.Context,
307321
imageShareGroupID int,
@@ -318,6 +332,7 @@ func (c *Client) ImageShareGroupUpdateMember(
318332

319333
// ImageShareGroupRemoveMember allows the producer to remove an individual ImageShareGroupMember
320334
// that’s been accepted into the ImageShareGroup owned by the producer.
335+
// NOTE: May not currently be available to all users and can only be used with v4beta.
321336
func (c *Client) ImageShareGroupRemoveMember(
322337
ctx context.Context,
323338
imageShareGroupID int,

images.go

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,31 @@ type ImageRegion struct {
4242

4343
// Image represents a deployable Image object for use with Linode Instances
4444
type Image struct {
45-
ID string `json:"id"`
46-
CreatedBy string `json:"created_by"`
47-
Capabilities []string `json:"capabilities"`
48-
Label string `json:"label"`
49-
Description string `json:"description"`
50-
Type string `json:"type"`
51-
Vendor string `json:"vendor"`
52-
Status ImageStatus `json:"status"`
53-
Size int `json:"size"`
54-
TotalSize int `json:"total_size"`
55-
IsPublic bool `json:"is_public"`
56-
IsShared bool `json:"is_shared"`
57-
Deprecated bool `json:"deprecated"`
58-
Regions []ImageRegion `json:"regions"`
59-
Tags []string `json:"tags"`
45+
ID string `json:"id"`
46+
CreatedBy string `json:"created_by"`
47+
Capabilities []string `json:"capabilities"`
48+
Label string `json:"label"`
49+
Description string `json:"description"`
50+
Type string `json:"type"`
51+
Vendor string `json:"vendor"`
52+
Status ImageStatus `json:"status"`
53+
Size int `json:"size"`
54+
TotalSize int `json:"total_size"`
55+
IsPublic bool `json:"is_public"`
56+
57+
// NOTE: IsShared may not currently be available to all users and can only be used with v4beta.
58+
IsShared bool `json:"is_shared"`
59+
60+
Deprecated bool `json:"deprecated"`
61+
Regions []ImageRegion `json:"regions"`
62+
Tags []string `json:"tags"`
6063

6164
Updated *time.Time `json:"-"`
6265
Created *time.Time `json:"-"`
6366
Expiry *time.Time `json:"-"`
6467
EOL *time.Time `json:"-"`
6568

69+
// NOTE: ImageSharing may not currently be available to all users and can only be used with v4beta.
6670
ImageSharing ImageSharing `json:"image_sharing"`
6771
}
6872

0 commit comments

Comments
 (0)