code: public List<TypeFieldInner> listFieldsByModuleAndType(String resourceGroupName, String automationAccountName, String moduleName, String typeName) {
          return listFieldsByModuleAndTypeWithServiceResponseAsync(resourceGroupName, automationAccountName, moduleName, typeName).toBlocking().single().body();
      }
docs: Retrieve a list of fields of a given type identified by module name.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param moduleName The name of module.
  @param typeName The name of type.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the List&lt;TypeFieldInner&gt; object if successful.