Skip to content

Latest commit

 

History

History
473 lines (302 loc) · 14.2 KB

File metadata and controls

473 lines (302 loc) · 14.2 KB

\NetworkDriveServiceApi

All URIs are relative to https://api.beget.com

Method HTTP request Description
NetworkDriveServiceGetLimits Get /v1/cloud/network-drive/limits
NetworkDriveServiceGetMounts Get /v1/cloud/network-drive/mounts
NetworkDriveServiceGetPrice Get /v1/cloud/network-drive/price
NetworkDriveServiceMount Post /v1/cloud/network-drive/{service_id}/mount
NetworkDriveServiceResize Post /v1/cloud/network-drive/{service_id}/resize
NetworkDriveServiceSetMounts Post /v1/cloud/network-drive/mounts
NetworkDriveServiceUnmount Post /v1/cloud/network-drive/{service_id}/unmount

NetworkDriveServiceGetLimits

NetworkDriveGetLimitsResponse NetworkDriveServiceGetLimits(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

NetworkDriveGetLimitsResponse

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]

NetworkDriveServiceGetMounts

NetworkDriveGetMountsResponse NetworkDriveServiceGetMounts(ctx).ResourceId(resourceId).ResourceType(resourceType).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {
    resourceId := "resourceId_example" // string |  (optional)
    resourceType := "resourceType_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceGetMounts(context.Background()).ResourceId(resourceId).ResourceType(resourceType).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceGetMounts``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `NetworkDriveServiceGetMounts`: NetworkDriveGetMountsResponse
    fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceGetMounts`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
resourceId string
resourceType string

Return type

NetworkDriveGetMountsResponse

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]

NetworkDriveServiceGetPrice

NetworkDriveGetPriceResponse NetworkDriveServiceGetPrice(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

NetworkDriveGetPriceResponse

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]

NetworkDriveServiceMount

NetworkDriveMountResponse NetworkDriveServiceMount(ctx, serviceId).NetworkDriveMountRequest(networkDriveMountRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {
    serviceId := "serviceId_example" // string | 
    networkDriveMountRequest := *openapiclient.NewNetworkDriveMountRequest() // NetworkDriveMountRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceMount(context.Background(), serviceId).NetworkDriveMountRequest(networkDriveMountRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceMount``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `NetworkDriveServiceMount`: NetworkDriveMountResponse
    fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceMount`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

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

Name Type Description Notes

networkDriveMountRequest | NetworkDriveMountRequest | |

Return type

NetworkDriveMountResponse

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]

NetworkDriveServiceResize

NetworkDriveResizeResponse NetworkDriveServiceResize(ctx, serviceId).NetworkDriveResizeRequest(networkDriveResizeRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {
    serviceId := "serviceId_example" // string | 
    networkDriveResizeRequest := *openapiclient.NewNetworkDriveResizeRequest() // NetworkDriveResizeRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceResize(context.Background(), serviceId).NetworkDriveResizeRequest(networkDriveResizeRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceResize``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `NetworkDriveServiceResize`: NetworkDriveResizeResponse
    fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceResize`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

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

Name Type Description Notes

networkDriveResizeRequest | NetworkDriveResizeRequest | |

Return type

NetworkDriveResizeResponse

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]

NetworkDriveServiceSetMounts

NetworkDriveSetMountsResponse NetworkDriveServiceSetMounts(ctx).NetworkDriveSetMountsRequest(networkDriveSetMountsRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {
    networkDriveSetMountsRequest := *openapiclient.NewNetworkDriveSetMountsRequest() // NetworkDriveSetMountsRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceSetMounts(context.Background()).NetworkDriveSetMountsRequest(networkDriveSetMountsRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceSetMounts``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `NetworkDriveServiceSetMounts`: NetworkDriveSetMountsResponse
    fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceSetMounts`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
networkDriveSetMountsRequest NetworkDriveSetMountsRequest

Return type

NetworkDriveSetMountsResponse

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]

NetworkDriveServiceUnmount

NetworkDriveUnmountResponse NetworkDriveServiceUnmount(ctx, serviceId).NetworkDriveUnmountRequest(networkDriveUnmountRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)

func main() {
    serviceId := "serviceId_example" // string | 
    networkDriveUnmountRequest := *openapiclient.NewNetworkDriveUnmountRequest() // NetworkDriveUnmountRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceUnmount(context.Background(), serviceId).NetworkDriveUnmountRequest(networkDriveUnmountRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceUnmount``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `NetworkDriveServiceUnmount`: NetworkDriveUnmountResponse
    fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceUnmount`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

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

Name Type Description Notes

networkDriveUnmountRequest | NetworkDriveUnmountRequest | |

Return type

NetworkDriveUnmountResponse

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]