diff --git a/pkg/servicelevel/servicelevel_api.go b/pkg/servicelevel/servicelevel_api.go index 46f87d0ff..8ba0754d0 100644 --- a/pkg/servicelevel/servicelevel_api.go +++ b/pkg/servicelevel/servicelevel_api.go @@ -113,27 +113,25 @@ const ServiceLevelCreateMutation = `mutation( } }` // Deletes an existing SLI by the GUID. +// iD optional field manually removed in favor of gUID to favor it's deprecation func (a *Servicelevel) ServiceLevelDelete( gUID common.EntityGUID, - iD string, ) (*ServiceLevelIndicator, error) { return a.ServiceLevelDeleteWithContext(context.Background(), gUID, - iD, ) } // Deletes an existing SLI by the GUID. +// iD optional field manually removed in favor of gUID to favor it's deprecation func (a *Servicelevel) ServiceLevelDeleteWithContext( ctx context.Context, gUID common.EntityGUID, - iD string, ) (*ServiceLevelIndicator, error) { resp := ServiceLevelDeleteQueryResponse{} vars := map[string]interface{}{ "guid": gUID, - "id": iD, } if err := a.client.NerdGraphQueryWithContext(ctx, ServiceLevelDeleteMutation, vars, &resp); err != nil { @@ -147,12 +145,11 @@ type ServiceLevelDeleteQueryResponse struct { ServiceLevelIndicator ServiceLevelIndicator `json:"ServiceLevelDelete"` } +// id optional field manually removed in favor of guid to favor it's deprecation const ServiceLevelDeleteMutation = `mutation( $guid: EntityGuid, - $id: ID, ) { serviceLevelDelete( guid: $guid, - id: $id, ) { createdAt createdBy { @@ -217,30 +214,28 @@ const ServiceLevelDeleteMutation = `mutation( } }` // Updates an existing SLI by the GUID. +// iD optional field manually removed in favor of gUID to favor it's deprecation func (a *Servicelevel) ServiceLevelUpdate( gUID common.EntityGUID, - iD string, indicator ServiceLevelIndicatorUpdateInput, ) (*ServiceLevelIndicator, error) { return a.ServiceLevelUpdateWithContext(context.Background(), gUID, - iD, indicator, ) } // Updates an existing SLI by the GUID. +// iD optional field manually removed in favor of gUID to favor it's deprecation func (a *Servicelevel) ServiceLevelUpdateWithContext( ctx context.Context, gUID common.EntityGUID, - iD string, indicator ServiceLevelIndicatorUpdateInput, ) (*ServiceLevelIndicator, error) { resp := ServiceLevelUpdateQueryResponse{} vars := map[string]interface{}{ "guid": gUID, - "id": iD, "indicator": indicator, } @@ -255,13 +250,12 @@ type ServiceLevelUpdateQueryResponse struct { ServiceLevelIndicator ServiceLevelIndicator `json:"ServiceLevelUpdate"` } +// id optional field manually removed in favor of guid to favor it's deprecation const ServiceLevelUpdateMutation = `mutation( $guid: EntityGuid, - $id: ID, $indicator: ServiceLevelIndicatorUpdateInput!, ) { serviceLevelUpdate( guid: $guid, - id: $id, indicator: $indicator, ) { createdAt