Skip to content

Latest commit

 

History

History
422 lines (276 loc) · 11.5 KB

File metadata and controls

422 lines (276 loc) · 11.5 KB

\EdgeFunctionsApi

All URIs are relative to https://api.azionapi.net

Method HTTP request Description
EdgeFunctionsGet Get /edge_functions edge_functions
EdgeFunctionsIdDelete Delete /edge_functions/{id} edge_functions
EdgeFunctionsIdGet Get /edge_functions/{id} edge_functions
EdgeFunctionsIdPatch Patch /edge_functions/{id} edge_functions
EdgeFunctionsIdPut Put /edge_functions/{id} edge_functions
EdgeFunctionsPost Post /edge_functions edge_functions

EdgeFunctionsGet

ListEdgeFunctionResponse EdgeFunctionsGet(ctx).Page(page).PageSize(pageSize).Sort(sort).OrderBy(orderBy).Execute()

edge_functions

Example

package main

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

func main() {
    page := int64(789) // int64 |  (optional)
    pageSize := int64(789) // int64 |  (optional)
    sort := "sort_example" // string |  (optional)
    orderBy := "orderBy_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.EdgeFunctionsApi.EdgeFunctionsGet(context.Background()).Page(page).PageSize(pageSize).Sort(sort).OrderBy(orderBy).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `EdgeFunctionsApi.EdgeFunctionsGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EdgeFunctionsGet`: ListEdgeFunctionResponse
    fmt.Fprintf(os.Stdout, "Response from `EdgeFunctionsApi.EdgeFunctionsGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
page int64
pageSize int64
sort string
orderBy string

Return type

ListEdgeFunctionResponse

Authorization

JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; version=3, application/json

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

EdgeFunctionsIdDelete

EdgeFunctionsIdDelete(ctx, id).Execute()

edge_functions

Example

package main

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

func main() {
    id := int64(789) // int64 | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.EdgeFunctionsApi.EdgeFunctionsIdDelete(context.Background(), id).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `EdgeFunctionsApi.EdgeFunctionsIdDelete``: %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.
id int64

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

JWT

HTTP request headers

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

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

EdgeFunctionsIdGet

EdgeFunctionResponse EdgeFunctionsIdGet(ctx, id).Execute()

edge_functions

Example

package main

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

func main() {
    id := int64(789) // int64 | 

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

EdgeFunctionResponse

Authorization

JWT

HTTP request headers

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

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

EdgeFunctionsIdPatch

EdgeFunctionResponse EdgeFunctionsIdPatch(ctx, id).PatchEdgeFunctionRequest(patchEdgeFunctionRequest).Execute()

edge_functions

Example

package main

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

func main() {
    id := int64(789) // int64 | 
    patchEdgeFunctionRequest := *openapiclient.NewPatchEdgeFunctionRequest() // PatchEdgeFunctionRequest | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.EdgeFunctionsApi.EdgeFunctionsIdPatch(context.Background(), id).PatchEdgeFunctionRequest(patchEdgeFunctionRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `EdgeFunctionsApi.EdgeFunctionsIdPatch``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EdgeFunctionsIdPatch`: EdgeFunctionResponse
    fmt.Fprintf(os.Stdout, "Response from `EdgeFunctionsApi.EdgeFunctionsIdPatch`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

patchEdgeFunctionRequest | PatchEdgeFunctionRequest | |

Return type

EdgeFunctionResponse

Authorization

JWT

HTTP request headers

  • Content-Type: application/json; version=3
  • Accept: application/json

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

EdgeFunctionsIdPut

EdgeFunctionResponse EdgeFunctionsIdPut(ctx, id).PutEdgeFunctionRequest(putEdgeFunctionRequest).Execute()

edge_functions

Example

package main

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

func main() {
    id := int64(789) // int64 | 
    putEdgeFunctionRequest := *openapiclient.NewPutEdgeFunctionRequest() // PutEdgeFunctionRequest | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.EdgeFunctionsApi.EdgeFunctionsIdPut(context.Background(), id).PutEdgeFunctionRequest(putEdgeFunctionRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `EdgeFunctionsApi.EdgeFunctionsIdPut``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `EdgeFunctionsIdPut`: EdgeFunctionResponse
    fmt.Fprintf(os.Stdout, "Response from `EdgeFunctionsApi.EdgeFunctionsIdPut`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

putEdgeFunctionRequest | PutEdgeFunctionRequest | |

Return type

EdgeFunctionResponse

Authorization

JWT

HTTP request headers

  • Content-Type: application/json; version=3
  • Accept: application/json

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

EdgeFunctionsPost

EdgeFunctionResponse EdgeFunctionsPost(ctx).CreateEdgeFunctionRequest(createEdgeFunctionRequest).Execute()

edge_functions

Example

package main

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

func main() {
    createEdgeFunctionRequest := *openapiclient.NewCreateEdgeFunctionRequest() // CreateEdgeFunctionRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
createEdgeFunctionRequest CreateEdgeFunctionRequest

Return type

EdgeFunctionResponse

Authorization

JWT

HTTP request headers

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

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