com.azure.resourcemanager.appplatform.implementation.SpringConfigurationServicesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-appplatform Show documentation
Show all versions of azure-resourcemanager-appplatform Show documentation
This package contains Microsoft Azure App Platform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.appplatform.implementation;
import com.azure.resourcemanager.appplatform.AppPlatformManager;
import com.azure.resourcemanager.appplatform.fluent.models.ConfigurationServiceResourceInner;
import com.azure.resourcemanager.appplatform.models.ConfigurationServiceGitProperty;
import com.azure.resourcemanager.appplatform.models.ConfigurationServiceProperties;
import com.azure.resourcemanager.appplatform.models.ConfigurationServiceSettings;
import com.azure.resourcemanager.appplatform.models.SpringConfigurationService;
import com.azure.resourcemanager.appplatform.models.SpringConfigurationServices;
import com.azure.resourcemanager.appplatform.models.SpringService;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesNonCachedImpl;
public class SpringConfigurationServicesImpl
extends ExternalChildResourcesNonCachedImpl
implements SpringConfigurationServices {
public SpringConfigurationServicesImpl(SpringServiceImpl parentImpl) {
super(parentImpl, parentImpl.taskGroup(), "SpringConfigurationService");
}
void prepareCreateOrUpdate(ConfigurationServiceGitProperty property) {
prepareInlineDefine(
new SpringConfigurationServiceImpl(
Constants.DEFAULT_TANZU_COMPONENT_NAME,
parent(),
new ConfigurationServiceResourceInner()
.withProperties(
new ConfigurationServiceProperties()
.withSettings(
new ConfigurationServiceSettings()
.withGitProperty(property))
)
)
);
}
@Override
public AppPlatformManager manager() {
return parent().manager();
}
@Override
public SpringServiceImpl parent() {
return getParent();
}
}