Share via


PostgreSqlFirewallRuleCollection Class

Definition

A class representing a collection of PostgreSqlFirewallRuleResource and their operations. Each PostgreSqlFirewallRuleResource in the collection will belong to the same instance of PostgreSqlServerResource. To get a PostgreSqlFirewallRuleCollection instance call the GetPostgreSqlFirewallRules method from an instance of PostgreSqlServerResource.

public class PostgreSqlFirewallRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.PostgreSql.PostgreSqlFirewallRuleResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PostgreSql.PostgreSqlFirewallRuleResource>
type PostgreSqlFirewallRuleCollection = class
    inherit ArmCollection
    interface seq<PostgreSqlFirewallRuleResource>
    interface IEnumerable
    interface IAsyncEnumerable<PostgreSqlFirewallRuleResource>
Public Class PostgreSqlFirewallRuleCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of PostgreSqlFirewallRuleResource), IEnumerable(Of PostgreSqlFirewallRuleResource)
Inheritance
PostgreSqlFirewallRuleCollection
Implements

Constructors

PostgreSqlFirewallRuleCollection()

Initializes a new instance of the PostgreSqlFirewallRuleCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, PostgreSqlFirewallRuleData, CancellationToken)

Creates a new firewall rule or updates an existing firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
CreateOrUpdateAsync(WaitUntil, String, PostgreSqlFirewallRuleData, CancellationToken)

Creates a new firewall rule or updates an existing firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_CreateOrUpdate
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
Get(String, CancellationToken)

Gets information about a server firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
GetAll(CancellationToken)

List all the firewall rules in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules
  • Operation Id: FirewallRules_ListByServer
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
GetAllAsync(CancellationToken)

List all the firewall rules in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules
  • Operation Id: FirewallRules_ListByServer
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
GetAsync(String, CancellationToken)

Gets information about a server firewall rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operation Id: FirewallRules_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlFirewallRuleResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<PostgreSqlFirewallRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PostgreSqlFirewallRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to