/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, OperationsBase serviceImpl) { serviceBinder.AddMethod(__Method_ListOperations, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.LongRunning.ListOperationsRequest, global::Google.LongRunning.ListOperationsResponse>(serviceImpl.ListOperations)); serviceBinder.AddMethod(__Method_GetOperation, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.LongRunning.GetOperationRequest, global::Google.LongRunning.Operation>(serviceImpl.GetOperation)); serviceBinder.AddMethod(__Method_DeleteOperation, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.LongRunning.DeleteOperationRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteOperation)); serviceBinder.AddMethod(__Method_CancelOperation, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.LongRunning.CancelOperationRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.CancelOperation)); serviceBinder.AddMethod(__Method_WaitOperation, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.LongRunning.WaitOperationRequest, global::Google.LongRunning.Operation>(serviceImpl.WaitOperation)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(OperationsBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListOperations, serviceImpl.ListOperations) .AddMethod(__Method_GetOperation, serviceImpl.GetOperation) .AddMethod(__Method_DeleteOperation, serviceImpl.DeleteOperation) .AddMethod(__Method_CancelOperation, serviceImpl.CancelOperation).Build()); }
/// <summary> Initializes a new instance of the <see cref = "TagResource"/> 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 TagResource(OperationsBase options, TagResourceData resource) : base(options, resource.Id) { Data = resource; }
internal TagCreateOrUpdateOperation(OperationsBase parentOperation, Response <TagResourceData> response) { _operation = new OperationOrResponseInternals <TagResource>(Response.FromValue(new TagResource(parentOperation, response.Value), response.GetRawResponse())); }
internal TagResourceContainer(OperationsBase operationsBase) : base(operationsBase) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); }
/// <summary> /// Initializes a new instance of the <see cref="RoleAssignment"/> class. /// </summary> /// <param name="operations"> The operations class to copy the http settings from. </param> /// <param name="data"> The properties of the resource. </param> internal RoleAssignment(OperationsBase operations, RoleAssignmentData data) : base(operations, data?.Id) { Data = data; }
/// <summary> /// Initializes a new instance of the <see cref="RoleAssignmentOperations"/> class. /// </summary> /// <param name="operation"> The http settings to use with these operations. </param> /// <param name="id"> The resource identifier for the RoleAssignment to operate on. </param> internal RoleAssignmentOperations(OperationsBase operation, ResourceIdentifier id) : base(operation, id) { }
/// <summary> /// Initializes a new instance of the <see cref="RoleAssignmentContainer"/> class. /// </summary> /// <param name="operations">A generic operations class representing the parent of the role Assignment</param> internal RoleAssignmentContainer(OperationsBase operations) : base(operations) { }
/// <summary> /// Initializes a new instance of the <see cref="Subscription"/> class. /// </summary> /// <param name="operations"> The operations object to copy the client parameters from. </param> /// <param name="subscriptionData"> The data model representing the generic azure resource. </param> internal Subscription(OperationsBase operations, SubscriptionData subscriptionData) : base(operations, subscriptionData.Id) { Data = subscriptionData; }
/// <summary> /// Initializes a new instance of the <see cref="GenericResourceExpanded"/> class. /// </summary> /// <param name="operations"> The operations object to copy the client parameters from. </param> /// <param name="resource"> The data model representing the generic azure resource. </param> internal GenericResourceExpanded(OperationsBase operations, GenericResourceExpandedData resource) : base(operations, resource.Id) { Data = resource; }
/// <summary> /// Initializes a new instance of the <see cref="SubscriptionOperations"/> 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> protected SubscriptionOperations(OperationsBase operations, ResourceIdentifier id) : base(operations, id) { }
/// <summary> /// Initializes a new instance of the <see cref="ResourceOperationsBase"/> class. /// </summary> /// <param name="operations"> The operation to get the client properties from. </param> /// <param name="id"> The id of the resource. </param> internal GenericResourceOperations(OperationsBase operations, ResourceIdentifier id) : base(operations, id) { }
protected ProviderOperations(OperationsBase operations, ResourceIdentifier id) : base(operations, id) { }
internal PredefinedTagCreateOrUpdateOperation(OperationsBase parentOperation, Response <PredefinedTagData> response) { _operation = new OperationOrResponseInternals <PredefinedTag>(Response.FromValue(new PredefinedTag(parentOperation, response.Value), response.GetRawResponse())); }
/// <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 internal ManagementGroupOperations(OperationsBase options, ResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new ManagementGroupsRestOperations(_clientDiagnostics, Pipeline, BaseUri); }
internal ResourcesCreateOrUpdateByIdOperation(OperationsBase parentOperation, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationOrResponseInternals <GenericResource>(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesCreateOrUpdateByIdOperation"); _parentOperation = parentOperation; }
internal ManagementGroupsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) { _operation = new OperationOrResponseInternals <ManagementGroup>(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsCreateOrUpdateOperation"); _operationBase = operationsBase; }
/// <summary> /// Initializes a new instance of the <see cref="PredefinedTag"/> class. /// </summary> /// <param name="operations"> The operations object to copy the client parameters from. </param> /// <param name="data"> The data model representing the generic azure resource. </param> internal PredefinedTag(OperationsBase operations, PredefinedTagData data) : base(new ClientContext(operations.ClientOptions, operations.Credential, operations.BaseUri, operations.Pipeline), operations.Id) { Data = data; }
/// <summary> /// Initializes a new instance of the <see cref="RoleAssignmentContainer"/> class. /// </summary> /// <param name="operations"> The client options with http client details for these operations. </param> /// <param name="scope"> The resource id of the target resource, resource group, or subscription for this role assignment. </param> internal RoleAssignmentContainer(OperationsBase operations, ResourceIdentifier scope) : base(operations, scope) { }
/// <summary> /// Initializes a new instance of the <see cref="ManagementGroup"/> class. /// </summary> /// <param name="operations"> The operations to copy the client options from. </param> /// <param name="resource"> The ManagementGroupData to use in these operations. </param> internal ManagementGroupInfo(OperationsBase operations, ManagementGroupInfoData resource) : base(operations, resource.Id) { Data = resource; }
/// <summary> /// Initializes a new instance of the <see cref="Provider"/> class. /// </summary> /// <param name="operations"> The operations object to copy the client parameters from. </param> /// <param name="providerData"></param> /// <exception cref="ArgumentNullException"> If <see cref="ArmClientOptions"/> or <see cref="TokenCredential"/> is null. </exception> internal Provider(OperationsBase operations, ProviderData providerData) : base(operations, providerData.Id) { Data = providerData; }
/// <summary> /// Initializes a new instance of the <see cref="Tenant"/> class. /// </summary> /// <param name="operations"> The operations object to copy the client parameters from. </param> /// <param name="tenantData"> The data model representing the generic azure resource. </param> internal Tenant(OperationsBase operations, TenantData tenantData) : base(operations.ClientOptions, operations.Credential, operations.BaseUri, operations.Pipeline) { Data = tenantData; }
internal TagResourceOperations(OperationsBase options, ResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); }