azure_mgmt_key_vault 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +4 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb +48 -43
  4. data/lib/2016-10-01/generated/azure_mgmt_key_vault.rb +20 -6
  5. data/lib/2016-10-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +9 -2
  6. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb +17 -0
  7. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb +77 -0
  8. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/log_specification.rb +68 -0
  9. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation.rb +83 -0
  10. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_display.rb +79 -0
  11. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_list_result.rb +100 -0
  12. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/reason.rb +16 -0
  13. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource.rb +2 -1
  14. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb +2 -2
  15. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/service_specification.rb +55 -0
  16. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault.rb +2 -1
  17. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb +95 -0
  18. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb +57 -0
  19. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb +60 -0
  20. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb +2 -2
  21. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb +67 -0
  22. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb +145 -0
  23. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_properties.rb +1 -3
  24. data/lib/2016-10-01/generated/azure_mgmt_key_vault/operations.rb +216 -0
  25. data/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb +692 -91
  26. data/lib/profiles/latest/keyvault_latest_profile_client.rb +28 -9
  27. data/lib/profiles/latest/keyvault_module_definition.rb +0 -1
  28. data/lib/profiles/latest/modules/keyvault_profile_module.rb +142 -69
  29. data/lib/version.rb +1 -1
  30. metadata +17 -3
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Log specification of operation.
10
+ #
11
+ class LogSpecification
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of log specification.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Display name of log specification.
19
+ attr_accessor :display_name
20
+
21
+ # @return [String] Blob duration of specification.
22
+ attr_accessor :blob_duration
23
+
24
+
25
+ #
26
+ # Mapper for LogSpecification class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'LogSpecification',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'LogSpecification',
37
+ model_properties: {
38
+ name: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'name',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ display_name: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'displayName',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ blob_duration: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'blobDuration',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,83 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Key Vault REST API operation definition.
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] Display metadata associated with the
19
+ # operation.
20
+ attr_accessor :display
21
+
22
+ # @return [String] The origin of operations.
23
+ attr_accessor :origin
24
+
25
+ # @return [ServiceSpecification] One property of operation, include
26
+ # metric specifications.
27
+ attr_accessor :service_specification
28
+
29
+
30
+ #
31
+ # Mapper for Operation class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'Operation',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'Operation',
42
+ model_properties: {
43
+ name: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ display: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'display',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'OperationDisplay'
58
+ }
59
+ },
60
+ origin: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'origin',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ service_specification: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'properties.serviceSpecification',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'ServiceSpecification'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,79 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Display metadata associated with the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service provider: Microsoft Key Vault.
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed etc.
19
+ attr_accessor :resource
20
+
21
+ # @return [String] Type of operation: get, read, delete, etc.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] Decription of operation.
25
+ attr_accessor :description
26
+
27
+
28
+ #
29
+ # Mapper for OperationDisplay class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'Operation_display',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'OperationDisplay',
40
+ model_properties: {
41
+ provider: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'provider',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ resource: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'resource',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ operation: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'operation',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ description: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'description',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,100 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Result of the request to list Storage operations. It contains a list of
10
+ # operations and a URL link to get the next set of results.
11
+ #
12
+ class OperationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<Operation>] List of Storage operations supported by the
18
+ # Storage resource provider.
19
+ attr_accessor :value
20
+
21
+ # @return [String] The URL to get the next set of operations.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [OperationListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for OperationListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'OperationListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'OperationListResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'OperationElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'Operation'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Defines values for Reason
10
+ #
11
+ module Reason
12
+ AccountNameInvalid = "AccountNameInvalid"
13
+ AlreadyExists = "AlreadyExists"
14
+ end
15
+ end
16
+ end
@@ -55,7 +55,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
55
55
  },
56
56
  name: {
57
57
  client_side_validation: true,
58
- required: true,
58
+ required: false,
59
+ read_only: true,
59
60
  serialized_name: 'name',
60
61
  type: {
61
62
  name: 'String'
@@ -13,10 +13,10 @@ module Azure::KeyVault::Mgmt::V2016_10_01
13
13
  include MsRestAzure
14
14
 
15
15
  include MsRest::JSONable
16
- # @return [Array<Resource>] Gets the list of vault resources.
16
+ # @return [Array<Resource>] The list of vault resources.
17
17
  attr_accessor :value
18
18
 
19
- # @return [String] Gets the URL to get the next set of vault resources.
19
+ # @return [String] The URL to get the next set of vault resources.
20
20
  attr_accessor :next_link
21
21
 
22
22
  # return [Proc] with next page method call.
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # One property of operation, include log specifications.
10
+ #
11
+ class ServiceSpecification
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<LogSpecification>] Log specifications of operation.
16
+ attr_accessor :log_specifications
17
+
18
+
19
+ #
20
+ # Mapper for ServiceSpecification class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ServiceSpecification',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ServiceSpecification',
31
+ model_properties: {
32
+ log_specifications: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'logSpecifications',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'LogSpecificationElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'LogSpecification'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -40,7 +40,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01
40
40
  },
41
41
  name: {
42
42
  client_side_validation: true,
43
- required: true,
43
+ required: false,
44
+ read_only: true,
44
45
  serialized_name: 'name',
45
46
  type: {
46
47
  name: 'String'
@@ -0,0 +1,95 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::KeyVault::Mgmt::V2016_10_01
7
+ module Models
8
+ #
9
+ # Parameters for updating the access policy in a vault
10
+ #
11
+ class VaultAccessPolicyParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource id of the access policy.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The resource name of the access policy.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The resource name of the access policy.
22
+ attr_accessor :type
23
+
24
+ # @return [String] The resource type of the the access policy.
25
+ attr_accessor :location
26
+
27
+ # @return [VaultAccessPolicyProperties] Properties of the access policy
28
+ attr_accessor :properties
29
+
30
+
31
+ #
32
+ # Mapper for VaultAccessPolicyParameters class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'VaultAccessPolicyParameters',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'VaultAccessPolicyParameters',
43
+ model_properties: {
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ name: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'name',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ type: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'type',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ location: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'location',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ properties: {
81
+ client_side_validation: true,
82
+ required: true,
83
+ serialized_name: 'properties',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'VaultAccessPolicyProperties'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end