code: public Observable<DeploymentExtendedInner> getByResourceGroupAsync(String resourceGroupName, String deploymentName) {
          return getByResourceGroupWithServiceResponseAsync(resourceGroupName, deploymentName).map(new Func1<ServiceResponse<DeploymentExtendedInner>, DeploymentExtendedInner>() {
              @Override
              public DeploymentExtendedInner call(ServiceResponse<DeploymentExtendedInner> response) {
                  return response.body();
              }
          });
      }
docs: Gets a deployment.
  
  @param resourceGroupName The name of the resource group. The name is case insensitive.
  @param deploymentName The name of the deployment to get.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the DeploymentExtendedInner object