Skip to content

Latest commit

 

History

History
1195 lines (769 loc) · 35.6 KB

StorageProjectImageApi.md

File metadata and controls

1195 lines (769 loc) · 35.6 KB

\StorageProjectImageApi

All URIs are relative to https://api.hyperone.com/v2

Method HTTP request Description
StorageProjectImageCreate Post /storage/{locationId}/project/{projectId}/image Create storage/image
StorageProjectImageDelete Delete /storage/{locationId}/project/{projectId}/image/{imageId} Delete storage/image
StorageProjectImageEventGet Get /storage/{locationId}/project/{projectId}/image/{imageId}/event/{eventId} Get storage/image.event
StorageProjectImageEventList Get /storage/{locationId}/project/{projectId}/image/{imageId}/event List storage/image.event
StorageProjectImageGet Get /storage/{locationId}/project/{projectId}/image/{imageId} Get storage/image
StorageProjectImageList Get /storage/{locationId}/project/{projectId}/image List storage/image
StorageProjectImageServiceGet Get /storage/{locationId}/project/{projectId}/image/{imageId}/service/{serviceId} Get storage/image.service
StorageProjectImageServiceList Get /storage/{locationId}/project/{projectId}/image/{imageId}/service List storage/image.service
StorageProjectImageTagCreate Post /storage/{locationId}/project/{projectId}/image/{imageId}/tag Create storage/image.tag
StorageProjectImageTagDelete Delete /storage/{locationId}/project/{projectId}/image/{imageId}/tag/{tagId} Delete storage/image.tag
StorageProjectImageTagGet Get /storage/{locationId}/project/{projectId}/image/{imageId}/tag/{tagId} Get storage/image.tag
StorageProjectImageTagList Get /storage/{locationId}/project/{projectId}/image/{imageId}/tag List storage/image.tag
StorageProjectImageTagPut Put /storage/{locationId}/project/{projectId}/image/{imageId}/tag Replace storage/image.tag
StorageProjectImageTransfer Post /storage/{locationId}/project/{projectId}/image/{imageId}/actions/transfer Transfer storage/image
StorageProjectImageUpdate Patch /storage/{locationId}/project/{projectId}/image/{imageId} Update storage/image

StorageProjectImageCreate

Image StorageProjectImageCreate(ctx, projectId, locationId).StorageProjectImageCreate(storageProjectImageCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()

Create storage/image

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    storageProjectImageCreate := *openapiclient.NewStorageProjectImageCreate("Name_example") // StorageProjectImageCreate | 
    xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
    xDryRun := "xDryRun_example" // string | Dry run (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageCreate(context.Background(), projectId, locationId).StorageProjectImageCreate(storageProjectImageCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageCreate`: Image
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageCreateRequest struct via the builder pattern

Name Type Description Notes

storageProjectImageCreate | StorageProjectImageCreate | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |

Return type

Image

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageDelete

Image StorageProjectImageDelete(ctx, projectId, locationId, imageId).Execute()

Delete storage/image

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageDelete(context.Background(), projectId, locationId, imageId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageDelete`: Image
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageDelete`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

Image

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageEventGet

Event StorageProjectImageEventGet(ctx, projectId, locationId, imageId, eventId).Execute()

Get storage/image.event

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    eventId := "eventId_example" // string | eventId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageEventGet(context.Background(), projectId, locationId, imageId, eventId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageEventGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageEventGet`: Event
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageEventGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id
eventId string eventId

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageEventGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Event

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageEventList

[]Event StorageProjectImageEventList(ctx, projectId, locationId, imageId).Limit(limit).Skip(skip).Execute()

List storage/image.event

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    limit := float32(8.14) // float32 | $limit (optional) (default to 100)
    skip := float32(8.14) // float32 | $skip (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageEventList(context.Background(), projectId, locationId, imageId).Limit(limit).Skip(skip).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageEventList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageEventList`: []Event
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageEventList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageEventListRequest struct via the builder pattern

Name Type Description Notes

limit | float32 | $limit | [default to 100] skip | float32 | $skip |

Return type

[]Event

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageGet

Image StorageProjectImageGet(ctx, projectId, locationId, imageId).Execute()

Get storage/image

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageGet(context.Background(), projectId, locationId, imageId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageGet`: Image
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Image

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageList

[]Image StorageProjectImageList(ctx, projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()

List storage/image

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    name := "name_example" // string | Filter by name (optional)
    tagValue := "tagValue_example" // string | Filter by tag.value (optional)
    tagKey := "tagKey_example" // string | Filter by tag.key (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageList(context.Background(), projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageList`: []Image
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageListRequest struct via the builder pattern

Name Type Description Notes

name | string | Filter by name | tagValue | string | Filter by tag.value | tagKey | string | Filter by tag.key |

Return type

[]Image

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageServiceGet

ResourceService StorageProjectImageServiceGet(ctx, projectId, locationId, imageId, serviceId).Execute()

Get storage/image.service

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    serviceId := "serviceId_example" // string | serviceId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageServiceGet(context.Background(), projectId, locationId, imageId, serviceId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageServiceGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageServiceGet`: ResourceService
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageServiceGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id
serviceId string serviceId

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageServiceGetRequest struct via the builder pattern

Name Type Description Notes

Return type

ResourceService

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageServiceList

[]ResourceService StorageProjectImageServiceList(ctx, projectId, locationId, imageId).Execute()

List storage/image.service

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageServiceList(context.Background(), projectId, locationId, imageId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageServiceList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageServiceList`: []ResourceService
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageServiceList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageServiceListRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ResourceService

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageTagCreate

Tag StorageProjectImageTagCreate(ctx, projectId, locationId, imageId).Tag(tag).Execute()

Create storage/image.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageTagCreate(context.Background(), projectId, locationId, imageId).Tag(tag).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageTagCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageTagCreate`: Tag
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageTagCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageTagCreateRequest struct via the builder pattern

Name Type Description Notes

tag | Tag | |

Return type

Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageTagDelete

StorageProjectImageTagDelete(ctx, projectId, locationId, imageId, tagId).Execute()

Delete storage/image.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    tagId := "tagId_example" // string | tagId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageTagDelete(context.Background(), projectId, locationId, imageId, tagId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageTagDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id
tagId string tagId

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageTagDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageTagGet

Tag StorageProjectImageTagGet(ctx, projectId, locationId, imageId, tagId).Execute()

Get storage/image.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    tagId := "tagId_example" // string | tagId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageTagGet(context.Background(), projectId, locationId, imageId, tagId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageTagGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageTagGet`: Tag
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageTagGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id
tagId string tagId

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageTagGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageTagList

[]Tag StorageProjectImageTagList(ctx, projectId, locationId, imageId).Execute()

List storage/image.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageTagList(context.Background(), projectId, locationId, imageId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageTagList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageTagList`: []Tag
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageTagList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageTagListRequest struct via the builder pattern

Name Type Description Notes

Return type

[]Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageTagPut

[]Tag StorageProjectImageTagPut(ctx, projectId, locationId, imageId).Tag(tag).Execute()

Replace storage/image.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageTagPut(context.Background(), projectId, locationId, imageId).Tag(tag).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageTagPut``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageTagPut`: []Tag
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageTagPut`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageTagPutRequest struct via the builder pattern

Name Type Description Notes

tag | []Tag | |

Return type

[]Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageTransfer

Image StorageProjectImageTransfer(ctx, projectId, locationId, imageId).StorageProjectImageTransfer(storageProjectImageTransfer).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()

Transfer storage/image

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    storageProjectImageTransfer := *openapiclient.NewStorageProjectImageTransfer("Project_example") // StorageProjectImageTransfer | 
    xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
    xDryRun := "xDryRun_example" // string | Dry run (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageTransfer(context.Background(), projectId, locationId, imageId).StorageProjectImageTransfer(storageProjectImageTransfer).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageTransfer``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageTransfer`: Image
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageTransfer`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageTransferRequest struct via the builder pattern

Name Type Description Notes

storageProjectImageTransfer | StorageProjectImageTransfer | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |

Return type

Image

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageProjectImageUpdate

Image StorageProjectImageUpdate(ctx, projectId, locationId, imageId).StorageProjectImageUpdate(storageProjectImageUpdate).Execute()

Update storage/image

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    imageId := "imageId_example" // string | Image Id
    storageProjectImageUpdate := *openapiclient.NewStorageProjectImageUpdate() // StorageProjectImageUpdate | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.StorageProjectImageApi.StorageProjectImageUpdate(context.Background(), projectId, locationId, imageId).StorageProjectImageUpdate(storageProjectImageUpdate).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectImageApi.StorageProjectImageUpdate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `StorageProjectImageUpdate`: Image
    fmt.Fprintf(os.Stdout, "Response from `StorageProjectImageApi.StorageProjectImageUpdate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
imageId string Image Id

Other Parameters

Other parameters are passed through a pointer to a apiStorageProjectImageUpdateRequest struct via the builder pattern

Name Type Description Notes

storageProjectImageUpdate | StorageProjectImageUpdate | |

Return type

Image

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]