Share via


ApiCenterEnvironmentCollection Class

Definition

A class representing a collection of ApiCenterEnvironmentResource and their operations. Each ApiCenterEnvironmentResource in the collection will belong to the same instance of ApiCenterWorkspaceResource. To get an ApiCenterEnvironmentCollection instance call the GetApiCenterEnvironments method from an instance of ApiCenterWorkspaceResource.

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

Constructors

ApiCenterEnvironmentCollection()

Initializes a new instance of the ApiCenterEnvironmentCollection 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, ApiCenterEnvironmentData, CancellationToken)

Creates new or updates existing environment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
CreateOrUpdateAsync(WaitUntil, String, ApiCenterEnvironmentData, CancellationToken)

Creates new or updates existing environment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_Get
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_Get
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
Get(String, CancellationToken)

Returns details of the environment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_Get
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
GetAll(String, CancellationToken)

Returns a collection of environments.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments
  • Operation Id: Environments_List
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
GetAllAsync(String, CancellationToken)

Returns a collection of environments.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments
  • Operation Id: Environments_List
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
GetAsync(String, CancellationToken)

Returns details of the environment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_Get
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_Get
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/environments/{environmentName}
  • Operation Id: Environments_Get
  • Default Api Version: 2024-03-01
  • Resource: ApiCenterEnvironmentResource
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<ApiCenterEnvironmentResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ApiCenterEnvironmentResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to