azure_mgmt_container_registry 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  3. data/lib/2017-03-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  4. data/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb +7 -0
  5. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  6. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/target.rb +1 -1
  7. data/lib/2017-10-01/generated/azure_mgmt_container_registry.rb +15 -11
  8. data/lib/2017-10-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  9. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/default_action.rb +16 -0
  10. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source.rb +27 -2
  11. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb +59 -0
  12. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +69 -0
  13. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry.rb +12 -0
  14. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb +12 -0
  15. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +47 -0
  16. data/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb +11 -0
  17. data/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb +5 -0
  18. data/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb +8 -0
  19. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry.rb +72 -0
  20. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_steps.rb +1147 -0
  21. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_tasks.rb +971 -0
  22. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb +766 -0
  23. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +143 -0
  24. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
  25. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
  26. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +17 -0
  27. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build.rb +239 -0
  28. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument.rb +84 -0
  29. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument_list.rb +99 -0
  30. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_filter.rb +129 -0
  31. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_get_log_result.rb +46 -0
  32. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_list_result.rb +99 -0
  33. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_status.rb +22 -0
  34. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step.rb +76 -0
  35. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_list.rb +99 -0
  36. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties.rb +60 -0
  37. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties_update_parameters.rb +46 -0
  38. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_update_parameters.rb +69 -0
  39. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task.rb +178 -0
  40. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_build_request.rb +62 -0
  41. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_filter.rb +46 -0
  42. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_list_result.rb +99 -0
  43. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_status.rb +16 -0
  44. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_update_parameters.rb +118 -0
  45. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_type.rb +16 -0
  46. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_update_parameters.rb +47 -0
  47. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb +197 -0
  48. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +163 -0
  49. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/git_commit_trigger.rb +90 -0
  50. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
  51. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
  52. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/os_type.rb +16 -0
  53. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb +59 -0
  54. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
  55. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
  56. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/queue_build_request.rb +47 -0
  57. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/quick_build_request.rb +173 -0
  58. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
  59. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_auth_info.rb +92 -0
  60. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
  61. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_properties.rb +84 -0
  62. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_update_parameters.rb +60 -0
  63. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
  64. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
  65. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
  66. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/registries.rb +287 -0
  67. data/lib/2018-09-01/generated/azure_mgmt_container_registry.rb +86 -0
  68. data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
  69. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
  70. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/architecture.rb +17 -0
  71. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
  72. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
  73. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
  74. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
  75. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
  76. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +70 -0
  77. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
  78. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +70 -0
  79. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +193 -0
  80. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +163 -0
  81. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +142 -0
  82. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +159 -0
  83. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
  84. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
  85. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +159 -0
  86. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
  87. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
  88. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
  89. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
  90. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/os.rb +16 -0
  91. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
  92. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
  93. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
  94. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
  95. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
  96. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run.rb +252 -0
  97. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
  98. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
  99. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
  100. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
  101. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
  102. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
  103. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
  104. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
  105. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
  106. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
  107. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +91 -0
  108. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
  109. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
  110. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +91 -0
  111. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
  112. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
  113. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task.rb +193 -0
  114. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
  115. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_run_request.rb +91 -0
  116. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
  117. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
  118. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
  119. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +130 -0
  120. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
  121. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_properties.rb +69 -0
  122. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
  123. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +69 -0
  124. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
  125. data/lib/2018-09-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
  126. data/lib/2018-09-01/generated/azure_mgmt_container_registry/registries.rb +289 -0
  127. data/lib/2018-09-01/generated/azure_mgmt_container_registry/runs.rb +766 -0
  128. data/lib/2018-09-01/generated/azure_mgmt_container_registry/tasks.rb +938 -0
  129. data/lib/azure_mgmt_container_registry.rb +2 -0
  130. data/lib/profiles/latest/modules/containerregistry_profile_module.rb +288 -44
  131. data/lib/version.rb +1 -1
  132. metadata +116 -2
@@ -0,0 +1,20 @@
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::ContainerRegistry::Mgmt::V2018_02_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for ProvisioningState
10
+ #
11
+ module ProvisioningState
12
+ Creating = "Creating"
13
+ Updating = "Updating"
14
+ Deleting = "Deleting"
15
+ Succeeded = "Succeeded"
16
+ Failed = "Failed"
17
+ Canceled = "Canceled"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,72 @@
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::ContainerRegistry::Mgmt::V2018_02_01_preview
7
+ module Models
8
+ #
9
+ # The resource model definition for a ARM proxy resource. It will have
10
+ # everything other than required location and tags.
11
+ #
12
+ class ProxyResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The resource ID.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The name of the resource.
20
+ attr_accessor :name
21
+
22
+ # @return [String] The type of the resource.
23
+ attr_accessor :type
24
+
25
+
26
+ #
27
+ # Mapper for ProxyResource class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'ProxyResource',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ProxyResource',
38
+ model_properties: {
39
+ id: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ name: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,47 @@
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::ContainerRegistry::Mgmt::V2018_02_01_preview
7
+ module Models
8
+ #
9
+ # The queue build request parameters.
10
+ #
11
+ class QueueBuildRequest
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["BuildTask"] = "BuildTaskBuildRequest"
17
+ @@discriminatorMap["QuickBuild"] = "QuickBuildRequest"
18
+
19
+ def initialize
20
+ @type = "QueueBuildRequest"
21
+ end
22
+
23
+ attr_accessor :type
24
+
25
+
26
+ #
27
+ # Mapper for QueueBuildRequest class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'QueueBuildRequest',
35
+ type: {
36
+ name: 'Composite',
37
+ polymorphic_discriminator: 'type',
38
+ uber_parent: 'QueueBuildRequest',
39
+ class_name: 'QueueBuildRequest',
40
+ model_properties: {
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,173 @@
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::ContainerRegistry::Mgmt::V2018_02_01_preview
7
+ module Models
8
+ #
9
+ # The queue build request parameters for a quick build.
10
+ #
11
+ class QuickBuildRequest < QueueBuildRequest
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @type = "QuickBuild"
18
+ end
19
+
20
+ attr_accessor :type
21
+
22
+ # @return [Array<String>] The fully qualified image names including the
23
+ # repository and tag.
24
+ attr_accessor :image_names
25
+
26
+ # @return [String] The URL(absolute or relative) of the source that needs
27
+ # to be built. For Docker build, it can be an URL to a tar or github
28
+ # repository as supported by Docker.
29
+ # If it is relative URL, the relative path should be obtained from
30
+ # calling getSourceUploadUrl API.
31
+ attr_accessor :source_location
32
+
33
+ # @return [Array<BuildArgument>] The collection of build arguments to be
34
+ # used.
35
+ attr_accessor :build_arguments
36
+
37
+ # @return [Boolean] The value of this property indicates whether the
38
+ # image built should be pushed to the registry or not. Default value:
39
+ # true .
40
+ attr_accessor :is_push_enabled
41
+
42
+ # @return [Boolean] The value of this property indicates whether the
43
+ # image cache is enabled or not. Default value: false .
44
+ attr_accessor :no_cache
45
+
46
+ # @return [Integer] Build timeout in seconds. Default value: 3600 .
47
+ attr_accessor :timeout
48
+
49
+ # @return [PlatformProperties] The platform properties against which the
50
+ # build will happen.
51
+ attr_accessor :platform
52
+
53
+ # @return [String] The Docker file path relative to the source location.
54
+ attr_accessor :docker_file_path
55
+
56
+
57
+ #
58
+ # Mapper for QuickBuildRequest class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'QuickBuild',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'QuickBuildRequest',
69
+ model_properties: {
70
+ type: {
71
+ client_side_validation: true,
72
+ required: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ image_names: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'imageNames',
82
+ type: {
83
+ name: 'Sequence',
84
+ element: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'StringElementType',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ },
94
+ source_location: {
95
+ client_side_validation: true,
96
+ required: true,
97
+ serialized_name: 'sourceLocation',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ build_arguments: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'buildArguments',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'BuildArgumentElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'BuildArgument'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ is_push_enabled: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'isPushEnabled',
123
+ default_value: true,
124
+ type: {
125
+ name: 'Boolean'
126
+ }
127
+ },
128
+ no_cache: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'noCache',
132
+ default_value: false,
133
+ type: {
134
+ name: 'Boolean'
135
+ }
136
+ },
137
+ timeout: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'timeout',
141
+ default_value: 3600,
142
+ constraints: {
143
+ InclusiveMaximum: 28800,
144
+ InclusiveMinimum: 300
145
+ },
146
+ type: {
147
+ name: 'Number'
148
+ }
149
+ },
150
+ platform: {
151
+ client_side_validation: true,
152
+ required: true,
153
+ serialized_name: 'platform',
154
+ type: {
155
+ name: 'Composite',
156
+ class_name: 'PlatformProperties'
157
+ }
158
+ },
159
+ docker_file_path: {
160
+ client_side_validation: true,
161
+ required: true,
162
+ serialized_name: 'dockerFilePath',
163
+ type: {
164
+ name: 'String'
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,111 @@
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::ContainerRegistry::Mgmt::V2018_02_01_preview
7
+ module Models
8
+ #
9
+ # An Azure resource.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The name of the resource.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The type of the resource.
22
+ attr_accessor :type
23
+
24
+ # @return [String] The location of the resource. This cannot be changed
25
+ # after the resource is created.
26
+ attr_accessor :location
27
+
28
+ # @return [Hash{String => String}] The tags of the resource.
29
+ attr_accessor :tags
30
+
31
+
32
+ # @return [String] the name of the resource group of the resource.
33
+ def resource_group
34
+ unless self.id.nil?
35
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
36
+ groups.captures[0].strip if groups
37
+ end
38
+ end
39
+
40
+
41
+ #
42
+ # Mapper for Resource class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'Resource',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'Resource',
53
+ model_properties: {
54
+ id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'id',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ name: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'name',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ type: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'type',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ location: {
82
+ client_side_validation: true,
83
+ required: true,
84
+ serialized_name: 'location',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ tags: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'tags',
93
+ type: {
94
+ name: 'Dictionary',
95
+ value: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'StringElementType',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,92 @@
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::ContainerRegistry::Mgmt::V2018_02_01_preview
7
+ module Models
8
+ #
9
+ # The authorization properties for accessing the source code repository.
10
+ #
11
+ class SourceControlAuthInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [TokenType] The type of Auth token. Possible values include:
16
+ # 'PAT', 'OAuth'
17
+ attr_accessor :token_type
18
+
19
+ # @return [String] The access token used to access the source control
20
+ # provider.
21
+ attr_accessor :token
22
+
23
+ # @return [String] The refresh token used to refresh the access token.
24
+ attr_accessor :refresh_token
25
+
26
+ # @return [String] The scope of the access token.
27
+ attr_accessor :scope
28
+
29
+ # @return [Integer] Time in seconds that the token remains valid
30
+ attr_accessor :expires_in
31
+
32
+
33
+ #
34
+ # Mapper for SourceControlAuthInfo class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'SourceControlAuthInfo',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'SourceControlAuthInfo',
45
+ model_properties: {
46
+ token_type: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'tokenType',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ token: {
55
+ client_side_validation: true,
56
+ required: true,
57
+ serialized_name: 'token',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ refresh_token: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'refreshToken',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ scope: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'scope',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ expires_in: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'expiresIn',
82
+ type: {
83
+ name: 'Number'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end