Skip to content

Commit

Permalink
CodeGen from PR 13985 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 34d4e3d41b0fce419a19295859cd9a77f21d8598 into 2917973fd886553c6277b66d786dc2827d11c386
  • Loading branch information
SDKAuto committed Apr 19, 2021
1 parent 343f07e commit ae56323
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ConfluentManagementClientContext extends msRestAzure.AzureServiceCl
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -51,10 +51,10 @@ export class ConfluentManagementClientContext extends msRestAzure.AzureServiceCl
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
12 changes: 8 additions & 4 deletions sdk/confluent/arm-confluent/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ export interface OfferDetail {
* SaaS Offer Status. Possible values include: 'Started', 'PendingFulfillmentStart',
* 'InProgress', 'Subscribed', 'Suspended', 'Reinstated', 'Succeeded', 'Failed', 'Unsubscribed',
* 'Updating'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
status?: SaaSOfferStatus;
readonly status?: SaaSOfferStatus;
}

/**
Expand Down Expand Up @@ -217,8 +218,9 @@ export interface OrganizationResourceProperties {
/**
* Provision states for confluent RP. Possible values include: 'Accepted', 'Creating',
* 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
provisioningState?: ProvisionState;
readonly provisioningState?: ProvisionState;
/**
* Id of the Confluent organization.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -266,8 +268,9 @@ export interface OrganizationResource extends BaseResource {
/**
* Provision states for confluent RP. Possible values include: 'Accepted', 'Creating',
* 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
provisioningState?: ProvisionState;
readonly provisioningState?: ProvisionState;
/**
* Id of the Confluent organization.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -373,8 +376,9 @@ export interface ConfluentAgreementResourceListResponse extends Array<ConfluentA
export interface OperationListResult extends Array<OperationResult> {
/**
* URL to get the next set of operation list results if there are any.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
nextLink?: string;
readonly nextLink?: string;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions sdk/confluent/arm-confluent/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export const OfferDetail: msRest.CompositeMapper = {
}
},
status: {
readOnly: true,
serializedName: "status",
type: {
name: "String"
Expand Down Expand Up @@ -350,6 +351,7 @@ export const OrganizationResourceProperties: msRest.CompositeMapper = {
}
},
provisioningState: {
readOnly: true,
serializedName: "provisioningState",
type: {
name: "String"
Expand Down Expand Up @@ -422,6 +424,7 @@ export const OrganizationResource: msRest.CompositeMapper = {
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
type: {
name: "String"
Expand Down Expand Up @@ -544,6 +547,7 @@ export const OperationListResult: msRest.CompositeMapper = {
}
},
nextLink: {
readOnly: true,
serializedName: "nextLink",
type: {
name: "String"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ const listOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
Expand All @@ -130,6 +133,9 @@ const createOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
Expand Down Expand Up @@ -158,6 +164,9 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
Expand Down

0 comments on commit ae56323

Please sign in to comment.