|
| 1 | +// @license |
| 2 | +// Copyright 2023 Dynatrace LLC |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +/* |
| 16 | +Package clients contains 'smart' clients for the Dynatrace API. |
| 17 | +
|
| 18 | +These clients are generally based on those found in package api/clients, but implement logic to ensure the Dynatrace API |
| 19 | +can be used for configuration-as-code use-cases reliably. |
| 20 | +
|
| 21 | +For the underlying clients see package [github.com/dynatrace/dynatrace-configuration-as-code-core/api/clients]. |
| 22 | +
|
| 23 | +In general, whereas the CRUD api/clients make a single API call per operation, the ones in this package make several and |
| 24 | +react to API responses as needed. |
| 25 | +
|
| 26 | +For example, the clients in this package will resolve and follow pagination in their List methods, whereas an api/clients |
| 27 | +implementation requires/allows the user to handle pagination and make several requests on their own. |
| 28 | +
|
| 29 | +Clients implement the following methods: |
| 30 | + - Get |
| 31 | + - List |
| 32 | + - Create |
| 33 | + - Update |
| 34 | + - Upsert (Create or Update as needed) |
| 35 | + - Delete |
| 36 | +
|
| 37 | +A clients.Factory simplifies creation of clients. |
| 38 | +*/ |
| 39 | +package clients |
0 commit comments