IncidentsMonitoringAppscodeComV1alpha1Api

June 20, 2018 ยท View on GitHub

All URIs are relative to https://localhost

MethodHTTP requestDescription
createNamespacedAcknowledgementPOST /apis/incidents.monitoring.appscode.com/v1alpha1/namespaces/{namespace}/acknowledgements
deleteNamespacedAcknowledgementDELETE /apis/incidents.monitoring.appscode.com/v1alpha1/namespaces/{namespace}/acknowledgements/{name}
getAPIResourcesGET /apis/incidents.monitoring.appscode.com/v1alpha1/

createNamespacedAcknowledgement

V1alpha1Acknowledgement createNamespacedAcknowledgement(namespace, body, pretty)

create an Acknowledgement

Example

// Import classes:
//import com.appscode.searchlight.client.ApiException;
//import com.appscode.searchlight.client.apis.IncidentsMonitoringAppscodeComV1alpha1Api;


IncidentsMonitoringAppscodeComV1alpha1Api apiInstance = new IncidentsMonitoringAppscodeComV1alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V1alpha1Acknowledgement body = new V1alpha1Acknowledgement(); // V1alpha1Acknowledgement | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V1alpha1Acknowledgement result = apiInstance.createNamespacedAcknowledgement(namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling IncidentsMonitoringAppscodeComV1alpha1Api#createNamespacedAcknowledgement");
    e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
namespaceStringobject name and auth scope, such as for teams and projects
bodyV1alpha1Acknowledgement
prettyStringIf 'true', then the output is pretty printed.[optional]

Return type

V1alpha1Acknowledgement

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

deleteNamespacedAcknowledgement

V1Status deleteNamespacedAcknowledgement(name, namespace, body, gracePeriodSeconds, orphanDependents, pretty, propagationPolicy)

delete an Acknowledgement

Example

// Import classes:
//import com.appscode.searchlight.client.ApiException;
//import com.appscode.searchlight.client.apis.IncidentsMonitoringAppscodeComV1alpha1Api;


IncidentsMonitoringAppscodeComV1alpha1Api apiInstance = new IncidentsMonitoringAppscodeComV1alpha1Api();
String name = "name_example"; // String | name of the Acknowledgement
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | 
Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
try {
    V1Status result = apiInstance.deleteNamespacedAcknowledgement(name, namespace, body, gracePeriodSeconds, orphanDependents, pretty, propagationPolicy);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling IncidentsMonitoringAppscodeComV1alpha1Api#deleteNamespacedAcknowledgement");
    e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
nameStringname of the Acknowledgement
namespaceStringobject name and auth scope, such as for teams and projects
bodyV1DeleteOptions
gracePeriodSecondsIntegerThe duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.[optional]
orphanDependentsBooleanDeprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.[optional]
prettyStringIf 'true', then the output is pretty printed.[optional]
propagationPolicyStringWhether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.[optional]

Return type

V1Status

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

getAPIResources

V1APIResourceList getAPIResources()

get available resources

Example

// Import classes:
//import com.appscode.searchlight.client.ApiException;
//import com.appscode.searchlight.client.apis.IncidentsMonitoringAppscodeComV1alpha1Api;


IncidentsMonitoringAppscodeComV1alpha1Api apiInstance = new IncidentsMonitoringAppscodeComV1alpha1Api();
try {
    V1APIResourceList result = apiInstance.getAPIResources();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling IncidentsMonitoringAppscodeComV1alpha1Api#getAPIResources");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

V1APIResourceList

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/yaml, application/vnd.kubernetes.protobuf
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf