All URIs are relative to https://api.hyperone.com/v2
| Method | HTTP request | Description |
|---|---|---|
| NetworkingProjectNetgwAttach | Post /networking/{locationId}/project/{projectId}/netgw/{netgwId}/actions/attach | Attach networking/netgw |
| NetworkingProjectNetgwCreate | Post /networking/{locationId}/project/{projectId}/netgw | Create networking/netgw |
| NetworkingProjectNetgwDelete | Delete /networking/{locationId}/project/{projectId}/netgw/{netgwId} | Delete networking/netgw |
| NetworkingProjectNetgwDetach | Post /networking/{locationId}/project/{projectId}/netgw/{netgwId}/actions/detach | Detach networking/netgw |
| NetworkingProjectNetgwEventGet | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId}/event/{eventId} | Get networking/netgw.event |
| NetworkingProjectNetgwEventList | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId}/event | List networking/netgw.event |
| NetworkingProjectNetgwGet | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId} | Get networking/netgw |
| NetworkingProjectNetgwList | Get /networking/{locationId}/project/{projectId}/netgw | List networking/netgw |
| NetworkingProjectNetgwServiceGet | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId}/service/{serviceId} | Get networking/netgw.service |
| NetworkingProjectNetgwServiceList | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId}/service | List networking/netgw.service |
| NetworkingProjectNetgwTagCreate | Post /networking/{locationId}/project/{projectId}/netgw/{netgwId}/tag | Create networking/netgw.tag |
| NetworkingProjectNetgwTagDelete | Delete /networking/{locationId}/project/{projectId}/netgw/{netgwId}/tag/{tagId} | Delete networking/netgw.tag |
| NetworkingProjectNetgwTagGet | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId}/tag/{tagId} | Get networking/netgw.tag |
| NetworkingProjectNetgwTagList | Get /networking/{locationId}/project/{projectId}/netgw/{netgwId}/tag | List networking/netgw.tag |
| NetworkingProjectNetgwTagPut | Put /networking/{locationId}/project/{projectId}/netgw/{netgwId}/tag | Replace networking/netgw.tag |
| NetworkingProjectNetgwUpdate | Patch /networking/{locationId}/project/{projectId}/netgw/{netgwId} | Update networking/netgw |
Netgw NetworkingProjectNetgwAttach(ctx, projectId, locationId, netgwId).NetworkingProjectNetgwAttach(networkingProjectNetgwAttach).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Attach networking/netgw
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
networkingProjectNetgwAttach := *openapiclient.NewNetworkingProjectNetgwAttach() // NetworkingProjectNetgwAttach |
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.NetworkingProjectNetgwApi.NetworkingProjectNetgwAttach(context.Background(), projectId, locationId, netgwId).NetworkingProjectNetgwAttach(networkingProjectNetgwAttach).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwAttach``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwAttach`: Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwAttach`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwAttachRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
networkingProjectNetgwAttach | NetworkingProjectNetgwAttach | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Netgw NetworkingProjectNetgwCreate(ctx, projectId, locationId).NetworkingProjectNetgwCreate(networkingProjectNetgwCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Create networking/netgw
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
networkingProjectNetgwCreate := *openapiclient.NewNetworkingProjectNetgwCreate() // NetworkingProjectNetgwCreate |
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.NetworkingProjectNetgwApi.NetworkingProjectNetgwCreate(context.Background(), projectId, locationId).NetworkingProjectNetgwCreate(networkingProjectNetgwCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwCreate`: Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwCreate`: %v\n", resp)
}| 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 are passed through a pointer to a apiNetworkingProjectNetgwCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
networkingProjectNetgwCreate | NetworkingProjectNetgwCreate | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Netgw NetworkingProjectNetgwDelete(ctx, projectId, locationId, netgwId).Execute()
Delete networking/netgw
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwDelete(context.Background(), projectId, locationId, netgwId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwDelete`: Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwDelete`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Netgw NetworkingProjectNetgwDetach(ctx, projectId, locationId, netgwId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Detach networking/netgw
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
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.NetworkingProjectNetgwApi.NetworkingProjectNetgwDetach(context.Background(), projectId, locationId, netgwId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwDetach``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwDetach`: Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwDetach`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwDetachRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Event NetworkingProjectNetgwEventGet(ctx, projectId, locationId, netgwId, eventId).Execute()
Get networking/netgw.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
eventId := "eventId_example" // string | eventId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwEventGet(context.Background(), projectId, locationId, netgwId, eventId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwEventGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwEventGet`: Event
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwEventGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id | |
| eventId | string | eventId |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwEventGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Event NetworkingProjectNetgwEventList(ctx, projectId, locationId, netgwId).Limit(limit).Skip(skip).Execute()
List networking/netgw.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw 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.NetworkingProjectNetgwApi.NetworkingProjectNetgwEventList(context.Background(), projectId, locationId, netgwId).Limit(limit).Skip(skip).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwEventList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwEventList`: []Event
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwEventList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwEventListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | float32 | $limit | [default to 100] skip | float32 | $skip |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Netgw NetworkingProjectNetgwGet(ctx, projectId, locationId, netgwId).Execute()
Get networking/netgw
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwGet(context.Background(), projectId, locationId, netgwId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwGet`: Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Netgw NetworkingProjectNetgwList(ctx, projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
List networking/netgw
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.NetworkingProjectNetgwApi.NetworkingProjectNetgwList(context.Background(), projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwList`: []Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwList`: %v\n", resp)
}| 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 are passed through a pointer to a apiNetworkingProjectNetgwListRequest 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 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourceService NetworkingProjectNetgwServiceGet(ctx, projectId, locationId, netgwId, serviceId).Execute()
Get networking/netgw.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
serviceId := "serviceId_example" // string | serviceId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwServiceGet(context.Background(), projectId, locationId, netgwId, serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwServiceGet`: ResourceService
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwServiceGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id | |
| serviceId | string | serviceId |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwServiceGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResourceService NetworkingProjectNetgwServiceList(ctx, projectId, locationId, netgwId).Execute()
List networking/netgw.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwServiceList(context.Background(), projectId, locationId, netgwId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwServiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwServiceList`: []ResourceService
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwServiceList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwServiceListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag NetworkingProjectNetgwTagCreate(ctx, projectId, locationId, netgwId).Tag(tag).Execute()
Create networking/netgw.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwTagCreate(context.Background(), projectId, locationId, netgwId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwTagCreate`: Tag
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwTagCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tag | Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkingProjectNetgwTagDelete(ctx, projectId, locationId, netgwId, tagId).Execute()
Delete networking/netgw.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwTagDelete(context.Background(), projectId, locationId, netgwId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwTagDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag NetworkingProjectNetgwTagGet(ctx, projectId, locationId, netgwId, tagId).Execute()
Get networking/netgw.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwTagGet(context.Background(), projectId, locationId, netgwId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwTagGet`: Tag
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwTagGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Tag NetworkingProjectNetgwTagList(ctx, projectId, locationId, netgwId).Execute()
List networking/netgw.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwTagList(context.Background(), projectId, locationId, netgwId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwTagList`: []Tag
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwTagListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Tag NetworkingProjectNetgwTagPut(ctx, projectId, locationId, netgwId).Tag(tag).Execute()
Replace networking/netgw.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwTagPut(context.Background(), projectId, locationId, netgwId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwTagPut`: []Tag
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwTagPut`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwTagPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tag | []Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Netgw NetworkingProjectNetgwUpdate(ctx, projectId, locationId, netgwId).NetworkingProjectNetgwUpdate(networkingProjectNetgwUpdate).Execute()
Update networking/netgw
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
netgwId := "netgwId_example" // string | Netgw Id
networkingProjectNetgwUpdate := *openapiclient.NewNetworkingProjectNetgwUpdate() // NetworkingProjectNetgwUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkingProjectNetgwApi.NetworkingProjectNetgwUpdate(context.Background(), projectId, locationId, netgwId).NetworkingProjectNetgwUpdate(networkingProjectNetgwUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkingProjectNetgwApi.NetworkingProjectNetgwUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkingProjectNetgwUpdate`: Netgw
fmt.Fprintf(os.Stdout, "Response from `NetworkingProjectNetgwApi.NetworkingProjectNetgwUpdate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| netgwId | string | Netgw Id |
Other parameters are passed through a pointer to a apiNetworkingProjectNetgwUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
networkingProjectNetgwUpdate | NetworkingProjectNetgwUpdate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]