Skip to content
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
2 changes: 1 addition & 1 deletion packages/@azure/arm-servicebus/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 4 additions & 7 deletions packages/@azure/arm-servicebus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ServiceBusManagementClient.

### How to Install

```
```bash
npm install @azure/arm-servicebus
```

Expand All @@ -19,13 +19,13 @@ npm install @azure/arm-servicebus

##### Install @azure/ms-rest-nodeauth

```
```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
Expand All @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {

##### Install @azure/ms-rest-browserauth

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down Expand Up @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-servicebus%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export {
Eventhub,
CaptureDescription,
Destination,
MigrationConfigProperties
MigrationConfigProperties,
NetworkRuleSet,
NWRuleSetVirtualNetworkRules,
Subnet,
NWRuleSetIpRules
} from "../models/mappers";

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export {
PremiumMessagingRegions,
PremiumMessagingRegionsProperties,
ArmDisasterRecovery,
MigrationConfigProperties
MigrationConfigProperties,
NetworkRuleSet,
NWRuleSetVirtualNetworkRules,
Subnet,
NWRuleSetIpRules
} from "../models/mappers";

145 changes: 136 additions & 9 deletions packages/@azure/arm-servicebus/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export interface SBSku {
*/
export interface SBNamespace extends TrackedResource {
/**
* @member {SBSku} [sku] Porperties of Sku
* @member {SBSku} [sku] Properties of Sku
*/
sku?: SBSku;
/**
Expand Down Expand Up @@ -156,7 +156,7 @@ export interface SBNamespace extends TrackedResource {
*/
export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch {
/**
* @member {SBSku} [sku] Porperties of Sku
* @member {SBSku} [sku] Properties of Sku
*/
sku?: SBSku;
/**
Expand Down Expand Up @@ -295,7 +295,7 @@ export interface AccessKeys {
* @interface
* An interface representing RegenerateAccessKeyParameters.
* Parameters supplied to the Regenerate Authorization Rule operation,
* specifies which key neeeds to be reset.
* specifies which key needs to be reset.
*
*/
export interface RegenerateAccessKeyParameters {
Expand Down Expand Up @@ -527,7 +527,7 @@ export interface SBTopic extends Resource {
*/
readonly subscriptionCount?: number;
/**
* @member {MessageCountDetails} [countDetails] Message count deatils
* @member {MessageCountDetails} [countDetails] Message count details
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -706,8 +706,8 @@ export interface SBSubscription extends Resource {
*/
export interface CheckNameAvailability {
/**
* @member {string} name The Name to check the namespce name availability and
* The namespace name can contain only letters, numbers, and hyphens. The
* @member {string} name The Name to check the namespace name availability
* and The namespace name can contain only letters, numbers, and hyphens. The
* namespace must start with a letter, and it must end with a letter or
* number.
*/
Expand Down Expand Up @@ -793,7 +793,7 @@ export interface Operation {
/**
* @interface
* An interface representing ErrorResponse.
* Error reponse indicates ServiceBus service is not able to process the
* Error response indicates ServiceBus service is not able to process the
* incoming request. The reason is provided in the error message.
*
*/
Expand Down Expand Up @@ -1130,12 +1130,12 @@ export interface ArmDisasterRecovery extends Resource {
readonly pendingReplicationOperationsCount?: number;
/**
* @member {string} [partnerNamespace] ARM Id of the Primary/Secondary
* eventhub namespace name, which is part of GEO DR pairning
* eventhub namespace name, which is part of GEO DR pairing
*/
partnerNamespace?: string;
/**
* @member {string} [alternateName] Primary/Secondary eventhub namespace
* name, which is part of GEO DR pairning
* name, which is part of GEO DR pairing
*/
alternateName?: string;
/**
Expand Down Expand Up @@ -1190,6 +1190,79 @@ export interface MigrationConfigProperties extends Resource {
readonly migrationState?: string;
}

/**
* @interface
* An interface representing Subnet.
* Properties supplied for Subnet
*
*/
export interface Subnet {
/**
* @member {string} id Resource ID of Virtual Network Subnet
*/
id: string;
}

/**
* @interface
* An interface representing NWRuleSetIpRules.
* Description of NetWorkRuleSet - IpRules resource.
*
*/
export interface NWRuleSetIpRules {
/**
* @member {string} [ipMask] IP Mask
*/
ipMask?: string;
/**
* @member {NetworkRuleIPAction} [action] The IP Filter Action. Possible
* values include: 'Allow'. Default value: 'Allow' .
*/
action?: NetworkRuleIPAction;
}

/**
* @interface
* An interface representing NWRuleSetVirtualNetworkRules.
* Description of VirtualNetworkRules - NetworkRules resource.
*
*/
export interface NWRuleSetVirtualNetworkRules {
/**
* @member {Subnet} [subnet] Subnet properties
*/
subnet?: Subnet;
/**
* @member {boolean} [ignoreMissingVnetServiceEndpoint] Value that indicates
* whether to ignore missing VNet Service Endpoint
*/
ignoreMissingVnetServiceEndpoint?: boolean;
}

/**
* @interface
* An interface representing NetworkRuleSet.
* Description of NetworkRuleSet resource.
*
* @extends Resource
*/
export interface NetworkRuleSet extends Resource {
/**
* @member {DefaultAction} [defaultAction] Default Action for Network Rule
* Set. Possible values include: 'Allow', 'Deny'
*/
defaultAction?: DefaultAction;
/**
* @member {NWRuleSetVirtualNetworkRules[]} [virtualNetworkRules] List
* VirtualNetwork Rules
*/
virtualNetworkRules?: NWRuleSetVirtualNetworkRules[];
/**
* @member {NWRuleSetIpRules[]} [ipRules] List of IpRules
*/
ipRules?: NWRuleSetIpRules[];
}

/**
* @interface
* An interface representing QueuesListByNamespaceOptionalParams.
Expand Down Expand Up @@ -1557,6 +1630,22 @@ export type ProvisioningStateDR = 'Accepted' | 'Succeeded' | 'Failed';
*/
export type RoleDisasterRecovery = 'Primary' | 'PrimaryNotReplicating' | 'Secondary';

/**
* Defines values for NetworkRuleIPAction.
* Possible values include: 'Allow'
* @readonly
* @enum {string}
*/
export type NetworkRuleIPAction = 'Allow';

/**
* Defines values for DefaultAction.
* Possible values include: 'Allow', 'Deny'
* @readonly
* @enum {string}
*/
export type DefaultAction = 'Allow' | 'Deny';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -1804,6 +1893,44 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & {
};
};

/**
* Contains response data for the createOrUpdateNetworkRuleSet operation.
*/
export type NamespacesCreateOrUpdateNetworkRuleSetResponse = NetworkRuleSet & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: NetworkRuleSet;
};
};

/**
* Contains response data for the getNetworkRuleSet operation.
*/
export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: NetworkRuleSet;
};
};

/**
* Contains response data for the beginCreateOrUpdate operation.
*/
Expand Down
Loading