code: public Observable<ManagementPolicyInner> createOrUpdateAsync(String resourceGroupName, String accountName, ManagementPolicySchema policy) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, accountName, policy).map(new Func1<ServiceResponse<ManagementPolicyInner>, ManagementPolicyInner>() {
              @Override
              public ManagementPolicyInner call(ServiceResponse<ManagementPolicyInner> response) {
                  return response.body();
              }
          });
      }
docs: Sets the managementpolicy to the specified storage account.
  
  @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
  @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
  @param policy The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ManagementPolicyInner object