File: README.md

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (133 lines) | stat: -rw-r--r-- 3,213 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Azure Personalizer Client for Python

> see https://aka.ms/autorest

### Setup

Install Autorest v3

```ps
npm install -g autorest
```

### Generation

```ps
cd <swagger-folder>
autorest
```

### Settings

```yaml
namespace: azure.ai.personalizer
package-name: azure-ai-personalizer
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
no-namespace-folders: true
python: true
openapi-type: data-plane
version-tolerant: true
package-version: 1.0.0b1
add-credential: true
credential-default-policy-type: AzureKeyCredentialPolicy
credential-key-header-name: Ocp-Apim-Subscription-Key
black: true
```


## Runtime

```yaml
input-file: https://github.com/Azure/azure-rest-api-specs/blob/e24bbf6a66cb0a19c072c6f15cee163acbd7acf7/specification/cognitiveservices/data-plane/Personalizer/preview/2022-09-01-preview/Personalizer.json
output-folder: ../azure/ai/personalizer
title: PersonalizerClient
```

```yaml
directive:
  - where-operation: Evaluations_List
    transform: >
        $.parameters[1]["x-ms-client-name"] = "filter_expression";
  - rename-operation:
      from: Evaluations_List
      to: ListEvaluations
  - rename-operation:
      from: Evaluations_Get
      to: GetEvaluation
  - rename-operation:
      from: Evaluations_Delete
      to: DeleteEvaluation
  - rename-operation:
      from: Evaluations_Create
      to: CreateEvaluation
  - rename-operation:
      from: FeatureImportances_List
      to: ListFeatureImportances
  - rename-operation:
      from: FeatureImportances_Get
      to: GetFeatureImportance
  - rename-operation:
      from: FeatureImportances_Delete
      to: DeleteFeatureImportance
  - rename-operation:
      from: FeatureImportances_Create
      to: CreateFeatureImportance
  - rename-operation:
      from: ServiceConfiguration_Get
      to: GetServiceConfiguration
  - rename-operation:
      from: ServiceConfiguration_Update
      to: UpdateServiceConfiguration
  - rename-operation:
      from: ServiceConfiguration_ApplyFromEvaluation
      to: ApplyFromEvaluation
  - rename-operation:
      from: Policy_Get
      to: GetPolicy
  - rename-operation:
      from: Policy_Update
      to: UpdatePolicy
  - rename-operation:
      from: Policy_Update
      to: UpdatePolicy
  - rename-operation:
      from: Policy_Reset
      to: ResetPolicy
  - rename-operation:
      from: Log_Delete
      to: DeleteLog
  - rename-operation:
      from: Log_GetProperties
      to: GetLogProperties
  - rename-operation:
      from: Model_Get
      to: GetModel
  - rename-operation:
      from: Model_Import
      to: ImportModel
  - rename-operation:
      from: Model_Reset
      to: ResetModel
  - rename-operation:
      from: Model_GetProperties
      to: GetModelProperties
  - rename-operation:
      from: Rank
      to: RankSingleSlot
  - rename-operation:
      from: Events_Reward
      to: RewardSingleSlotEvent
  - rename-operation:
      from: Events_Activate
      to: ActivateSingleSlotEvent
  - rename-operation:
      from: MultiSlot_Rank
      to: RankMultiSlot
  - rename-operation:
      from: MultiSlotEvents_Reward
      to: RewardMultiSlotEvent
  - rename-operation:
      from: MultiSlotEvents_Activate
      to: ActivateMultiSlotEvent
```