code: public Observable<VpnProfileResponseInner> beginGenerateVpnProfileAsync(String resourceGroupName, String gatewayName) {
          return beginGenerateVpnProfileWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1<ServiceResponse<VpnProfileResponseInner>, VpnProfileResponseInner>() {
              @Override
              public VpnProfileResponseInner call(ServiceResponse<VpnProfileResponseInner> response) {
                  return response.body();
              }
          });
      }
docs: Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.
  
  @param resourceGroupName The name of the resource group.
  @param gatewayName The name of the P2SVpnGateway.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the VpnProfileResponseInner object