Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/services/dnsManagement/lib/dnsManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class DnsManagementClient extends AzureServiceClient {
* @class
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} subscriptionId - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
Expand Down Expand Up @@ -58,6 +58,7 @@ export default class DnsManagementClient extends AzureServiceClient {
// Operation groups
recordSets: operations.RecordSets;
zones: operations.Zones;
dnsResourceReferenceOperations: operations.DnsResourceReferenceOperations;
}

export { DnsManagementClient, models as DnsManagementModels };
5 changes: 3 additions & 2 deletions lib/services/dnsManagement/lib/dnsManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DnsManagementClient extends ServiceClient {
/**
* Create a DnsManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} subscriptionId - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
Expand All @@ -50,7 +50,7 @@ class DnsManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2018-03-01-preview';
this.apiVersion = '2018-05-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -74,6 +74,7 @@ class DnsManagementClient extends ServiceClient {
}
this.recordSets = new operations.RecordSets(this);
this.zones = new operations.Zones(this);
this.dnsResourceReferenceOperations = new operations.DnsResourceReferenceOperations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
2 changes: 0 additions & 2 deletions lib/services/dnsManagement/lib/models/dnsResourceReference.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents a single Azure resource and its referencing DNS records.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents the properties of the Dns Resource Reference Request.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents the properties of the Dns Resource Reference Result.
*
Expand Down
102 changes: 61 additions & 41 deletions lib/services/dnsManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,18 @@ export interface CaaRecord {
value?: string;
}

/**
* @class
* Initializes a new instance of the SubResource class.
* @constructor
* A reference to a another resource
*
* @member {string} [id] Resource Id.
*/
export interface SubResource {
id?: string;
}

/**
* @class
* Initializes a new instance of the RecordSet class.
Expand All @@ -179,6 +191,10 @@ export interface CaaRecord {
* @member {number} [tTL] The TTL (time-to-live) of the records in the record
* set.
* @member {string} [fqdn] Fully qualified domain name of the record set.
* @member {string} [provisioningState] provisioning State of the record set.
* @member {object} [targetResource] A reference to an azure resource from
* where the dns resource value is taken.
* @member {string} [targetResource.id] Resource Id.
* @member {array} [aRecords] The list of A records in the record set.
* @member {array} [aaaaRecords] The list of AAAA records in the record set.
* @member {array} [mxRecords] The list of MX records in the record set.
Expand Down Expand Up @@ -212,6 +228,8 @@ export interface RecordSet extends BaseResource {
metadata?: { [propertyName: string]: string };
tTL?: number;
readonly fqdn?: string;
readonly provisioningState?: string;
targetResource?: SubResource;
aRecords?: ARecord[];
aaaaRecords?: AaaaRecord[];
mxRecords?: MxRecord[];
Expand Down Expand Up @@ -242,6 +260,11 @@ export interface RecordSet extends BaseResource {
* the record set.
* @member {string} [recordSet.fqdn] Fully qualified domain name of the record
* set.
* @member {string} [recordSet.provisioningState] provisioning State of the
* record set.
* @member {object} [recordSet.targetResource] A reference to an azure resource
* from where the dns resource value is taken.
* @member {string} [recordSet.targetResource.id] Resource Id.
* @member {array} [recordSet.aRecords] The list of A records in the record
* set.
* @member {array} [recordSet.aaaaRecords] The list of AAAA records in the
Expand Down Expand Up @@ -283,46 +306,24 @@ export interface RecordSetUpdateParameters {
recordSet?: RecordSet;
}

/**
* @class
* Initializes a new instance of the SubResource class.
* @constructor
* A reference to a another resource
*
* @member {string} [id] Resource Id.
*/
export interface SubResource {
id?: string;
}

/**
* @class
* Initializes a new instance of the Resource class.
* @constructor
* @member {string} [id] Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* @member {string} [name] The name of the resource
* @member {string} [type] The type of the resource. Ex-
* Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
* Common properties of an Azure Resource Manager resource
*
* @member {string} [id] Resource ID.
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} location Resource location.
* @member {object} [tags] Resource tags.
*/
export interface Resource extends BaseResource {
readonly id?: string;
readonly name?: string;
readonly type?: string;
}

/**
* @class
* Initializes a new instance of the TrackedResource class.
* @constructor
* The resource model definition for a ARM tracked top level resource
*
* @member {object} [tags] Resource tags.
* @member {string} location The geo-location where the resource lives
*/
export interface TrackedResource extends Resource {
tags?: { [propertyName: string]: string };
location: string;
tags?: { [propertyName: string]: string };
}

/**
Expand All @@ -349,7 +350,7 @@ export interface TrackedResource extends Resource {
* networks that resolve records in this DNS zone. This is a only when ZoneType
* is Private.
*/
export interface Zone extends TrackedResource {
export interface Zone extends Resource {
etag?: string;
readonly maxNumberOfRecordSets?: number;
readonly numberOfRecordSets?: number;
Expand All @@ -373,26 +374,45 @@ export interface ZoneUpdate {

/**
* @class
* Initializes a new instance of the ProxyResource class.
* Initializes a new instance of the DnsResourceReferenceRequest class.
* @constructor
* Represents the properties of the Dns Resource Reference Request.
*
* @member {array} [targetResources] A list of references to azure resources
* for which referencing dns records need to be queried.
*/
export interface DnsResourceReferenceRequest {
targetResources?: SubResource[];
}

/**
* @class
* Initializes a new instance of the DnsResourceReference class.
* @constructor
* The resource model definition for a ARM proxy resource. It will have
* everything other than required location and tags
* Represents a single Azure resource and its referencing DNS records.
*
* @member {array} [dnsResources] A list of dns Records
* @member {object} [targetResource] A reference to an azure resource from
* where the dns resource value is taken.
* @member {string} [targetResource.id] Resource Id.
*/
export interface ProxyResource extends Resource {
export interface DnsResourceReference {
dnsResources?: SubResource[];
targetResource?: SubResource;
}

/**
* @class
* Initializes a new instance of the AzureEntityResource class.
* Initializes a new instance of the DnsResourceReferenceResult class.
* @constructor
* The resource model definition for a Azure Resource Manager resource with an
* etag.
* Represents the properties of the Dns Resource Reference Result.
*
* @member {string} [etag] Resource Etag.
* @member {array} [dnsResourceReferences] The result of dns resource reference
* request. A list of dns resource references for each of the azure resource in
* the request
*/
export interface AzureEntityResource extends Resource {
readonly etag?: string;
export interface DnsResourceReferenceResult {
dnsResourceReferences?: DnsResourceReference[];
}


Expand Down
8 changes: 4 additions & 4 deletions lib/services/dnsManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ exports.TxtRecord = require('./txtRecord');
exports.CnameRecord = require('./cnameRecord');
exports.SoaRecord = require('./soaRecord');
exports.CaaRecord = require('./caaRecord');
exports.SubResource = require('./subResource');
exports.RecordSet = require('./recordSet');
exports.RecordSetUpdateParameters = require('./recordSetUpdateParameters');
exports.SubResource = require('./subResource');
exports.Resource = require('./resource');
exports.TrackedResource = require('./trackedResource');
exports.Zone = require('./zone');
exports.ZoneUpdate = require('./zoneUpdate');
exports.ProxyResource = require('./proxyResource');
exports.AzureEntityResource = require('./azureEntityResource');
exports.DnsResourceReferenceRequest = require('./dnsResourceReferenceRequest');
exports.DnsResourceReference = require('./dnsResourceReference');
exports.DnsResourceReferenceResult = require('./dnsResourceReferenceResult');
exports.RecordSetListResult = require('./recordSetListResult');
exports.ZoneListResult = require('./zoneListResult');
20 changes: 20 additions & 0 deletions lib/services/dnsManagement/lib/models/recordSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class RecordSet extends models['BaseResource'] {
* @member {number} [tTL] The TTL (time-to-live) of the records in the record
* set.
* @member {string} [fqdn] Fully qualified domain name of the record set.
* @member {string} [provisioningState] provisioning State of the record set.
* @member {object} [targetResource] A reference to an azure resource from
* where the dns resource value is taken.
* @member {string} [targetResource.id] Resource Id.
* @member {array} [aRecords] The list of A records in the record set.
* @member {array} [aaaaRecords] The list of AAAA records in the record set.
* @member {array} [mxRecords] The list of MX records in the record set.
Expand Down Expand Up @@ -133,6 +137,22 @@ class RecordSet extends models['BaseResource'] {
name: 'String'
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'String'
}
},
targetResource: {
required: false,
serializedName: 'properties.targetResource',
type: {
name: 'Composite',
className: 'SubResource'
}
},
aRecords: {
required: false,
serializedName: 'properties.ARecords',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ class RecordSetUpdateParameters {
* the record set.
* @member {string} [recordSet.fqdn] Fully qualified domain name of the
* record set.
* @member {string} [recordSet.provisioningState] provisioning State of the
* record set.
* @member {object} [recordSet.targetResource] A reference to an azure
* resource from where the dns resource value is taken.
* @member {string} [recordSet.targetResource.id] Resource Id.
* @member {array} [recordSet.aRecords] The list of A records in the record
* set.
* @member {array} [recordSet.aaaaRecords] The list of AAAA records in the
Expand Down
34 changes: 28 additions & 6 deletions lib/services/dnsManagement/lib/models/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
const models = require('./index');

/**
* Class representing a Resource.
* Common properties of an Azure Resource Manager resource
*
* @extends models['BaseResource']
*/
class Resource extends models['BaseResource'] {
/**
* Create a Resource.
* @member {string} [id] Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* @member {string} [name] The name of the resource
* @member {string} [type] The type of the resource. Ex-
* Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
* @member {string} [id] Resource ID.
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} location Resource location.
* @member {object} [tags] Resource tags.
*/
constructor() {
super();
Expand Down Expand Up @@ -66,6 +67,27 @@ class Resource extends models['BaseResource'] {
type: {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions lib/services/dnsManagement/lib/models/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const models = require('./index');
/**
* Describes a DNS zone.
*
* @extends models['TrackedResource']
* @extends models['Resource']
*/
class Zone extends models['TrackedResource'] {
class Zone extends models['Resource'] {
/**
* Create a Zone.
* @member {string} [etag] The etag of the zone.
Expand Down Expand Up @@ -80,6 +80,13 @@ class Zone extends models['TrackedResource'] {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
Expand All @@ -94,13 +101,6 @@ class Zone extends models['TrackedResource'] {
}
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
etag: {
required: false,
serializedName: 'etag',
Expand Down
Loading