1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
|
package authorization
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// 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.
//
// Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/to"
"net/http"
)
// ClassicAdministrator is classic Administrators
type ClassicAdministrator struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Properties *ClassicAdministratorProperties `json:"properties,omitempty"`
}
// ClassicAdministratorListResult is classicAdministrator list result
// information.
type ClassicAdministratorListResult struct {
autorest.Response `json:"-"`
Value *[]ClassicAdministrator `json:"value,omitempty"`
NextLink *string `json:",omitempty"`
}
// ClassicAdministratorListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ClassicAdministratorListResult) ClassicAdministratorListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ClassicAdministratorProperties is classic Administrator properties.
type ClassicAdministratorProperties struct {
EmailAddress *string `json:"emailAddress,omitempty"`
Role *string `json:"role,omitempty"`
}
// Permission is role definition permissions.
type Permission struct {
Actions *[]string `json:"actions,omitempty"`
NotActions *[]string `json:"notActions,omitempty"`
}
// PermissionGetResult is permissions information.
type PermissionGetResult struct {
autorest.Response `json:"-"`
Value *[]Permission `json:"value,omitempty"`
NextLink *string `json:",omitempty"`
}
// PermissionGetResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client PermissionGetResult) PermissionGetResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ProviderOperation is operation
type ProviderOperation struct {
Name *string `json:"name,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Description *string `json:"description,omitempty"`
Origin *string `json:"origin,omitempty"`
Properties *map[string]interface{} `json:"properties,omitempty"`
}
// ProviderOperationsMetadata is provider Operations metadata
type ProviderOperationsMetadata struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
ResourceTypes *[]ResourceType `json:"resourceTypes,omitempty"`
Operations *[]ProviderOperation `json:"operations,omitempty"`
}
// ProviderOperationsMetadataListResult is provider operations metadata list
type ProviderOperationsMetadataListResult struct {
autorest.Response `json:"-"`
Value *[]ProviderOperationsMetadata `json:"value,omitempty"`
NextLink *string `json:",omitempty"`
}
// ProviderOperationsMetadataListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ProviderOperationsMetadataListResult) ProviderOperationsMetadataListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// Resource is
type Resource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
}
// ResourceType is resource Type
type ResourceType struct {
Name *string `json:"name,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Operations *[]ProviderOperation `json:"operations,omitempty"`
}
// RoleAssignment is role Assignments
type RoleAssignment struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Properties *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"`
}
// RoleAssignmentCreateParameters is role assignment create parameters.
type RoleAssignmentCreateParameters struct {
Properties *RoleAssignmentProperties `json:"properties,omitempty"`
}
// RoleAssignmentFilter is role Assignments filter
type RoleAssignmentFilter struct {
PrincipalID *string `json:"principalId,omitempty"`
}
// RoleAssignmentListResult is role assignment list operation result.
type RoleAssignmentListResult struct {
autorest.Response `json:"-"`
Value *[]RoleAssignment `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// RoleAssignmentListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client RoleAssignmentListResult) RoleAssignmentListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// RoleAssignmentProperties is role assignment properties.
type RoleAssignmentProperties struct {
RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
PrincipalID *string `json:"principalId,omitempty"`
}
// RoleAssignmentPropertiesWithScope is role assignment properties with scope.
type RoleAssignmentPropertiesWithScope struct {
Scope *string `json:"scope,omitempty"`
RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
PrincipalID *string `json:"principalId,omitempty"`
}
// RoleDefinition is role definition.
type RoleDefinition struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Properties *RoleDefinitionProperties `json:"properties,omitempty"`
}
// RoleDefinitionFilter is role Definitions filter
type RoleDefinitionFilter struct {
RoleName *string `json:"roleName,omitempty"`
}
// RoleDefinitionListResult is role definition list operation result.
type RoleDefinitionListResult struct {
autorest.Response `json:"-"`
Value *[]RoleDefinition `json:"value,omitempty"`
NextLink *string `json:",omitempty"`
}
// RoleDefinitionListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client RoleDefinitionListResult) RoleDefinitionListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// RoleDefinitionProperties is role definition properties.
type RoleDefinitionProperties struct {
RoleName *string `json:"roleName,omitempty"`
Description *string `json:"description,omitempty"`
Type *string `json:"type,omitempty"`
Permissions *[]Permission `json:"permissions,omitempty"`
AssignableScopes *[]string `json:"assignableScopes,omitempty"`
}
// SubResource is
type SubResource struct {
ID *string `json:"id,omitempty"`
}
|