PackageSharingPolicy Class
- java.
lang. Object - system.
fabric. PackageSharingPolicy
- system.
public class PackageSharingPolicy
Represents a policy for the package sharing.
Constructor Summary
Constructor | Description |
---|---|
PackageSharingPolicy(String packageName, PackageSharingPolicyScope sharingScope) |
Creates PackageSharingPolicy object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getPackageName()
Gets the name of code, configuration or data package that should be shared. |
Package |
getSharingScope()
Gets the scope for package sharing policy. |
Constructor Details
PackageSharingPolicy
public PackageSharingPolicy(String packageName, PackageSharingPolicyScope sharingScope)
Creates PackageSharingPolicy object.
Parameters:
packageName
- Name of specific package that should be shared.
sharingScope
- PackageSharingPolicyScope parameter to indicate whether Code, Config, Data or All packages should be shared.
Method Details
getPackageName
public String getPackageName()
Gets the name of code, configuration or data package that should be shared.
Returns:
The name of code, configuration or data package that should be shared.
getSharingScope
public PackageSharingPolicyScope getSharingScope()
Gets the scope for package sharing policy.
Returns:
The scope for package sharing policy.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java