Skip to content

Commit 4eaf237

Browse files
author
SDK Automation
committed
Generated from c311e0de57119100ab63110111c16ffcbe958152
1 parent 1152ea0 commit 4eaf237

File tree

4 files changed

+150
-51
lines changed

4 files changed

+150
-51
lines changed

sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/index.ts

Lines changed: 68 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,43 @@ import * as msRest from "@azure/ms-rest-js";
1111

1212
export { BaseResource, CloudError };
1313

14+
/**
15+
* Top level metadata
16+
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
17+
*/
18+
export interface SystemData {
19+
/**
20+
* A string identifier for the identity that created the resource
21+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
22+
*/
23+
readonly createdBy?: string;
24+
/**
25+
* The type of identity that created the resource: user, application, managedIdentity, key
26+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
27+
*/
28+
readonly createdByType?: string;
29+
/**
30+
* The timestamp of resource creation (UTC)
31+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
32+
*/
33+
readonly createdAt?: Date;
34+
/**
35+
* A string identifier for the identity that last modified the resource
36+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
37+
*/
38+
readonly lastModifiedBy?: string;
39+
/**
40+
* The type of identity that last modified the resource: user, application, managedIdentity, key
41+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
42+
*/
43+
readonly lastModifiedByType?: string;
44+
/**
45+
* The timestamp of resource last modification (UTC)
46+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
47+
*/
48+
readonly lastModifiedAt?: Date;
49+
}
50+
1451
/**
1552
* The Resource model definition.
1653
*/
@@ -30,6 +67,11 @@ export interface Resource extends BaseResource {
3067
* **NOTE: This property will not be serialized. It can only be populated by the server.**
3168
*/
3269
readonly type?: string;
70+
/**
71+
* Top level metadata
72+
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
73+
*/
74+
systemData?: SystemData;
3375
}
3476

3577
/**
@@ -54,19 +96,12 @@ export interface Result {
5496
export interface ErrorDefinition {
5597
/**
5698
* Service specific error code which serves as the substatus for the HTTP error code.
57-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
5899
*/
59-
readonly code?: string;
100+
code: string;
60101
/**
61102
* Description of the error.
62-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
63-
*/
64-
readonly message?: string;
65-
/**
66-
* Internal error details.
67-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
68103
*/
69-
readonly details?: ErrorDefinition[];
104+
message: string;
70105
}
71106

72107
/**
@@ -88,7 +123,7 @@ export interface ComplianceStatus {
88123
* 'Noncompliant', 'Installed', 'Failed'
89124
* **NOTE: This property will not be serialized. It can only be populated by the server.**
90125
*/
91-
readonly complianceState?: ComplianceState;
126+
readonly complianceState?: ComplianceStateType;
92127
/**
93128
* Datetime the configuration was last applied.
94129
*/
@@ -100,7 +135,7 @@ export interface ComplianceStatus {
100135
/**
101136
* Level of the message. Possible values include: 'Error', 'Warning', 'Information'
102137
*/
103-
messageLevel?: MessageLevel;
138+
messageLevel?: MessageLevelType;
104139
}
105140

106141
/**
@@ -118,7 +153,7 @@ export interface HelmOperatorProperties {
118153
}
119154

120155
/**
121-
* The SourceControl Configuration object.
156+
* The SourceControl Configuration object returned in Get & Put response.
122157
*/
123158
export interface SourceControlConfiguration extends ProxyResource {
124159
/**
@@ -142,22 +177,30 @@ export interface SourceControlConfiguration extends ProxyResource {
142177
* Any Parameters for the Operator instance in string format.
143178
*/
144179
operatorParams?: string;
180+
/**
181+
* Name-value pairs of protected configuration settings for the configuration
182+
*/
183+
configurationProtectedSettings?: { [propertyName: string]: string };
145184
/**
146185
* Scope at which the operator will be installed. Possible values include: 'cluster',
147186
* 'namespace'. Default value: 'cluster'.
148187
*/
149-
operatorScope?: OperatorScope;
188+
operatorScope?: OperatorScopeType;
150189
/**
151190
* Public Key associated with this SourceControl configuration (either generated within the
152191
* cluster or provided by the user).
153192
* **NOTE: This property will not be serialized. It can only be populated by the server.**
154193
*/
155194
readonly repositoryPublicKey?: string;
156195
/**
157-
* Option to enable Helm Operator for this git configuration. Possible values include: 'true',
158-
* 'false'
196+
* Base64-encoded known_hosts contents containing public SSH keys required to access private Git
197+
* instances
159198
*/
160-
enableHelmOperator?: EnableHelmOperator;
199+
sshKnownHostsContents?: string;
200+
/**
201+
* Option to enable Helm Operator for this git configuration.
202+
*/
203+
enableHelmOperator?: boolean;
161204
/**
162205
* Properties for Helm operator.
163206
*/
@@ -167,7 +210,7 @@ export interface SourceControlConfiguration extends ProxyResource {
167210
* 'Deleting', 'Running', 'Succeeded', 'Failed'
168211
* **NOTE: This property will not be serialized. It can only be populated by the server.**
169212
*/
170-
readonly provisioningState?: ProvisioningState;
213+
readonly provisioningState?: ProvisioningStateType;
171214
/**
172215
* Compliance Status of the Configuration
173216
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -246,20 +289,20 @@ export interface ResourceProviderOperationList extends Array<ResourceProviderOpe
246289
}
247290

248291
/**
249-
* Defines values for ComplianceState.
292+
* Defines values for ComplianceStateType.
250293
* Possible values include: 'Pending', 'Compliant', 'Noncompliant', 'Installed', 'Failed'
251294
* @readonly
252295
* @enum {string}
253296
*/
254-
export type ComplianceState = 'Pending' | 'Compliant' | 'Noncompliant' | 'Installed' | 'Failed';
297+
export type ComplianceStateType = 'Pending' | 'Compliant' | 'Noncompliant' | 'Installed' | 'Failed';
255298

256299
/**
257-
* Defines values for MessageLevel.
300+
* Defines values for MessageLevelType.
258301
* Possible values include: 'Error', 'Warning', 'Information'
259302
* @readonly
260303
* @enum {string}
261304
*/
262-
export type MessageLevel = 'Error' | 'Warning' | 'Information';
305+
export type MessageLevelType = 'Error' | 'Warning' | 'Information';
263306

264307
/**
265308
* Defines values for OperatorType.
@@ -270,28 +313,20 @@ export type MessageLevel = 'Error' | 'Warning' | 'Information';
270313
export type OperatorType = 'Flux';
271314

272315
/**
273-
* Defines values for OperatorScope.
316+
* Defines values for OperatorScopeType.
274317
* Possible values include: 'cluster', 'namespace'
275318
* @readonly
276319
* @enum {string}
277320
*/
278-
export type OperatorScope = 'cluster' | 'namespace';
279-
280-
/**
281-
* Defines values for EnableHelmOperator.
282-
* Possible values include: 'true', 'false'
283-
* @readonly
284-
* @enum {string}
285-
*/
286-
export type EnableHelmOperator = 'true' | 'false';
321+
export type OperatorScopeType = 'cluster' | 'namespace';
287322

288323
/**
289-
* Defines values for ProvisioningState.
324+
* Defines values for ProvisioningStateType.
290325
* Possible values include: 'Accepted', 'Deleting', 'Running', 'Succeeded', 'Failed'
291326
* @readonly
292327
* @enum {string}
293328
*/
294-
export type ProvisioningState = 'Accepted' | 'Deleting' | 'Running' | 'Succeeded' | 'Failed';
329+
export type ProvisioningStateType = 'Accepted' | 'Deleting' | 'Running' | 'Succeeded' | 'Failed';
295330

296331
/**
297332
* Defines values for ClusterRp.

sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/mappers.ts

Lines changed: 79 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,58 @@ import * as msRest from "@azure/ms-rest-js";
1212
export const CloudError = CloudErrorMapper;
1313
export const BaseResource = BaseResourceMapper;
1414

15+
export const SystemData: msRest.CompositeMapper = {
16+
serializedName: "SystemData",
17+
type: {
18+
name: "Composite",
19+
className: "SystemData",
20+
modelProperties: {
21+
createdBy: {
22+
readOnly: true,
23+
serializedName: "createdBy",
24+
type: {
25+
name: "String"
26+
}
27+
},
28+
createdByType: {
29+
readOnly: true,
30+
serializedName: "createdByType",
31+
type: {
32+
name: "String"
33+
}
34+
},
35+
createdAt: {
36+
readOnly: true,
37+
serializedName: "createdAt",
38+
type: {
39+
name: "DateTime"
40+
}
41+
},
42+
lastModifiedBy: {
43+
readOnly: true,
44+
serializedName: "lastModifiedBy",
45+
type: {
46+
name: "String"
47+
}
48+
},
49+
lastModifiedByType: {
50+
readOnly: true,
51+
serializedName: "lastModifiedByType",
52+
type: {
53+
name: "String"
54+
}
55+
},
56+
lastModifiedAt: {
57+
readOnly: true,
58+
serializedName: "lastModifiedAt",
59+
type: {
60+
name: "DateTime"
61+
}
62+
}
63+
}
64+
}
65+
};
66+
1567
export const Resource: msRest.CompositeMapper = {
1668
serializedName: "Resource",
1769
type: {
@@ -38,6 +90,13 @@ export const Resource: msRest.CompositeMapper = {
3890
type: {
3991
name: "String"
4092
}
93+
},
94+
systemData: {
95+
serializedName: "systemData",
96+
type: {
97+
name: "Composite",
98+
className: "SystemData"
99+
}
41100
}
42101
}
43102
}
@@ -77,31 +136,18 @@ export const ErrorDefinition: msRest.CompositeMapper = {
77136
className: "ErrorDefinition",
78137
modelProperties: {
79138
code: {
80-
readOnly: true,
139+
required: true,
81140
serializedName: "code",
82141
type: {
83142
name: "String"
84143
}
85144
},
86145
message: {
87-
readOnly: true,
146+
required: true,
88147
serializedName: "message",
89148
type: {
90149
name: "String"
91150
}
92-
},
93-
details: {
94-
readOnly: true,
95-
serializedName: "details",
96-
type: {
97-
name: "Sequence",
98-
element: {
99-
type: {
100-
name: "Composite",
101-
className: "ErrorDefinition"
102-
}
103-
}
104-
}
105151
}
106152
}
107153
}
@@ -219,6 +265,17 @@ export const SourceControlConfiguration: msRest.CompositeMapper = {
219265
name: "String"
220266
}
221267
},
268+
configurationProtectedSettings: {
269+
serializedName: "properties.configurationProtectedSettings",
270+
type: {
271+
name: "Dictionary",
272+
value: {
273+
type: {
274+
name: "String"
275+
}
276+
}
277+
}
278+
},
222279
operatorScope: {
223280
serializedName: "properties.operatorScope",
224281
defaultValue: 'cluster',
@@ -233,10 +290,16 @@ export const SourceControlConfiguration: msRest.CompositeMapper = {
233290
name: "String"
234291
}
235292
},
293+
sshKnownHostsContents: {
294+
serializedName: "properties.sshKnownHostsContents",
295+
type: {
296+
name: "String"
297+
}
298+
},
236299
enableHelmOperator: {
237300
serializedName: "properties.enableHelmOperator",
238301
type: {
239-
name: "String"
302+
name: "Boolean"
240303
}
241304
},
242305
helmOperatorProperties: {

sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/models/sourceControlConfigurationsMappers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ export {
1515
ProxyResource,
1616
Resource,
1717
SourceControlConfiguration,
18-
SourceControlConfigurationList
18+
SourceControlConfigurationList,
19+
SystemData
1920
} from "../models/mappers";

sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class SourceControlConfigurationClientContext extends msRestAzure.AzureSe
4545

4646
super(credentials, options);
4747

48-
this.apiVersion = '2019-11-01-preview';
48+
this.apiVersion = '2020-10-01-preview';
4949
this.acceptLanguage = 'en-US';
5050
this.longRunningOperationRetryTimeout = 30;
5151
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

0 commit comments

Comments
 (0)