All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpoliciesNameDelete | Delete /apis/security.k8smgmt.io/v3/projects/{project}/namespacenetworkpolicies/{name} | |
| ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicysNameDelete | Delete /apis/security.k8smgmt.io/v3/projects/{project}/namespacenetworkpolicys/{name} |
ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpoliciesNameDelete(ctx, project, name).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
project := "project_example" // string | project of the resource
name := "name_example" // string | name of the resource
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.NamespaceNetworkPolicyDeleteApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpoliciesNameDelete(context.Background(), project, name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NamespaceNetworkPolicyDeleteApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpoliciesNameDelete``: %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. | |
| project | string | project of the resource | |
| name | string | name of the resource |
Other parameters are passed through a pointer to a apiApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpoliciesNameDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicysNameDelete(ctx, project, name).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
project := "project_example" // string | project of the resource
name := "name_example" // string | name of the resource
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.NamespaceNetworkPolicyDeleteApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicysNameDelete(context.Background(), project, name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NamespaceNetworkPolicyDeleteApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicysNameDelete``: %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. | |
| project | string | project of the resource | |
| name | string | name of the resource |
Other parameters are passed through a pointer to a apiApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicysNameDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]