Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericResourceOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected AvailabilitySetOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualNetworkOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected VirtualNetworkOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublicIpAddressOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected PublicIpAddressOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Feature"/> class.
 /// </summary>
 /// <param name="operations"> The operations to copy the client options from. </param>
 /// <param name="resource"> The FeatureData to use in these operations. </param>
 internal Feature(ResourceOperationsBase operations, FeatureData resource)
     : base(operations, resource.Id)
 {
     Data = resource;
 }
Beispiel #5
0
 internal ResourceGroupCreateOrUpdateOperation(ResourceOperationsBase parentOperation, Response <ResourceGroupData> response)
 {
     _operation = new OperationOrResponseInternals <ResourceGroup>(Response.FromValue(new ResourceGroup(parentOperation, response.Value), response.GetRawResponse()));
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceGroupOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected ResourceGroupOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
 }
Beispiel #7
0
 /// <summary>
 /// Get RoleAssignment Operations for the given resource and scope.  Note that this is only valid for unconstrained role assignments, so
 /// it is a generation-time decision if we include this.
 /// </summary>
 /// <param name="resource">The resource containing the role assignment</param>
 /// <param name="name">The name of the role assignment</param>
 /// <returns>A <see cref="RoleAssignmentOperations"/> that allows getting and deleting RoleAssignments</returns>
 public static RoleAssignmentOperations RoleAssignment(this ResourceOperationsBase resource, string name)
 {
     return(new RoleAssignmentOperations(resource.ClientOptions, $"{resource.Id}/providers/Microsoft.Authorization/roleAssignments/{name}"));
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceGroupOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The id of the feature to use. </param>
 protected FeatureOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new FeaturesRestOperations(_clientDiagnostics, Pipeline, Id.SubscriptionId, BaseUri);
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SubnetOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected SubnetOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualMachine"/> class.
 /// </summary>
 /// <param name="operations"> The client parameters to use in these operations. </param>
 /// <param name="resource"> The resource that is the target of operations. </param>
 internal VirtualMachine(ResourceOperationsBase operations, VirtualMachineData resource)
     : base(operations, resource.Id)
 {
     Data = resource;
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualNetwork"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="resource"> The resource that is the target of operations. </param>
 internal VirtualNetwork(ResourceOperationsBase options, VirtualNetworkData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AvailabilitySet"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="resource"> The resource that is the target of operations. </param>
 internal AvailabilitySet(ResourceOperationsBase options, AvailabilitySetData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaggableResource"/> class.
 /// </summary>
 /// <param name="operations"> The resource operations to copy the options from. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 internal TaggableResource(ResourceOperationsBase operations, ResourceIdentifier id)
     : base(operations, id)
 {
     _apiVersion = "2019-06-01";
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PublicIpAddress"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="resource"> The resource that is the target of operations. </param>
 internal PublicIpAddress(ResourceOperationsBase options, PublicIPAddressData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Subnet"/> class.
 /// </summary>
 internal Subnet(ResourceOperationsBase options, SubnetData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
 internal NetworkInterface(ResourceOperationsBase options, NetworkInterfaceData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
Beispiel #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkSecurityGroupOperations"/> class.
 /// </summary>
 /// <param name="operation"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected NetworkSecurityGroupOperations(ResourceOperationsBase operation, ResourceIdentifier id)
     : base(operation, id)
 {
 }
Beispiel #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkSecurityGroup"/> class.
 /// </summary>
 /// <param name="operations"> The client parameters to use in these operations. </param>
 /// <param name="resource"> The resource that is the target of operations. </param>
 internal NetworkSecurityGroup(ResourceOperationsBase operations, NetworkSecurityGroupData resource)
     : base(operations, resource.Id)
 {
     Data = resource;
 }
Beispiel #19
0
 /// <summary>
 /// Get RoleAssignment Container for the given resource.  Note that this is only valid for unconstrained role assignments, so
 /// it is a generation-time decision if we include this.
 /// </summary>
 /// <param name="resource">The resource that is the target of the roel assignemnt</param>
 /// <returns>A <see cref="RoleAssignmentContainer"/> that allows creating and listing RoleAssignments</returns>
 public static RoleAssignmentContainer RoleAssignments(this ResourceOperationsBase resource)
 {
     return(new RoleAssignmentContainer(resource));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualMachineOperations"/> class.
 /// </summary>
 /// <param name="operation"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected VirtualMachineOperations(ResourceOperationsBase operation, ResourceIdentifier id)
     : base(operation, id)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkInterfaceOperations"/> class.
 /// </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="id"> The identifier of the resource that is the target of operations. </param>
 protected NetworkInterfaceOperations(ResourceOperationsBase options, ResourceIdentifier id)
     : base(options, id)
 {
 }
Beispiel #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceGroup"/> class.
 /// </summary>
 /// <param name="operations"> The operations to copy the client options from. </param>
 /// <param name="resource"> The ResourceGroupData to use in these operations. </param>
 internal ResourceGroup(ResourceOperationsBase operations, ResourceGroupData resource)
     : base(operations, resource.Id)
 {
     Data = resource;
 }