public final class AccessPolicy extends Object
| Modifier and Type | Method and Description |
|---|---|
static EntityCreateOperation<AccessPolicyInfo> |
create(String name,
double durationInMinutes,
EnumSet<AccessPolicyPermission> permissions)
Creates an operation to create a new access policy
|
static EntityDeleteOperation |
delete(String accessPolicyId)
Create an operation to delete the given access policy
|
static EntityGetOperation<AccessPolicyInfo> |
get(LinkInfo<AccessPolicyInfo> link)
Create an operation that will retrieve the access policy at the given
link
|
static EntityGetOperation<AccessPolicyInfo> |
get(String accessPolicyId)
Create an operation that will retrieve the given access policy
|
static DefaultListOperation<AccessPolicyInfo> |
list()
Create an operation that will retrieve all access policies
|
public static EntityCreateOperation<AccessPolicyInfo> create(String name, double durationInMinutes, EnumSet<AccessPolicyPermission> permissions)
name - name of the access policydurationInMinutes - how long the access policy will be in forcepermissions - permissions allowed by this access policypublic static EntityGetOperation<AccessPolicyInfo> get(String accessPolicyId)
accessPolicyId - id of access policy to retrievepublic static EntityGetOperation<AccessPolicyInfo> get(LinkInfo<AccessPolicyInfo> link)
link - the linkpublic static DefaultListOperation<AccessPolicyInfo> list()
public static EntityDeleteOperation delete(String accessPolicyId)
accessPolicyId - id of access policy to delete/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/