oneview-sdk 5.10.0 → 5.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Dockerfile +13 -0
- data/endpoints-support.md +17 -11
- data/lib/oneview-sdk/resource/api1000/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1000/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/hypervisor_cluster_profile.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/hypervisor_manager.rb +22 -0
- data/lib/oneview-sdk/resource/api1200/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api600/c7000/server_certificate.rb +63 -0
- data/lib/oneview-sdk/resource/api600/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api800/c7000/server_certificate.rb +22 -0
- data/lib/oneview-sdk/resource/api800/synergy/server_certificate.rb +22 -0
- data/lib/oneview-sdk/version.rb +1 -1
- data/oneview-sdk.gemspec +1 -1
- metadata +23 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db439ccadec982a9f264e064314cbcfdff8ec7971f4c5355c50ee1964263b471
|
4
|
+
data.tar.gz: 9825f87687118c836b06e61977c385c3a27cd62d0a290812db220df10c37a2ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b64ee0fcb208c80c049b30743f233c31815724252e795bf2cb918efe97267f4c79d15a55699b289efc265949e18175faeab390de378ad6191059dbff205be7
|
7
|
+
data.tar.gz: 5c9a012f9476df049e660add293205b363cc778d674469cfb61d3f92d4452a1f3485936256b0633ce53a206d3ab25b1942376c2372c4239480e0219ffd22d32e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## v5.11.0
|
2
|
+
|
3
|
+
#### Notes
|
4
|
+
This release adds support to OneView Rest API version 600/800/1000/1200 for the hardware variants C7000 and Synergy to the features Server Certificate. Extended support to Hypervisor Manager and Hypervisor Cluster Profile Rest API version 1000, and API version 1200.
|
5
|
+
|
6
|
+
#### New Resource
|
7
|
+
- Server Certificate
|
8
|
+
|
9
|
+
#### Features supported
|
10
|
+
- Hypervisor Manager
|
11
|
+
- Hypervisor Cluster Profile
|
12
|
+
|
13
|
+
#### Bug fixes & Enhancements
|
14
|
+
- [#394](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/394) Travis build failed as disable method is deprecated for Pry Gem.
|
15
|
+
|
1
16
|
## v5.10.0
|
2
17
|
|
3
18
|
#### Notes
|
data/Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
FROM ubuntu:18.04
|
2
|
+
MAINTAINER "Chebrolu Harika <bala-sai-harika.chebrolu@hpe.com>"
|
3
|
+
WORKDIR /root
|
4
|
+
RUN apt-get update && \
|
5
|
+
apt-get install -y curl vim wget openssl bash ca-certificates git && \
|
6
|
+
apt-get install -y ruby-dev && \
|
7
|
+
apt-get install -y gcc make
|
8
|
+
RUN gem install oneview
|
9
|
+
ADD . oneview/
|
10
|
+
WORKDIR /root/oneview/oneview-sdk-ruby
|
11
|
+
RUN gem install bundler
|
12
|
+
RUN bundle update
|
13
|
+
CMD ["/bin/bash"]
|
data/endpoints-support.md
CHANGED
@@ -114,18 +114,18 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|
|
114
114
|
|<sub>/rest/firmware-drivers/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
115
115
|
|<sub>/rest/firmware-drivers/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
|
116
116
|
| **Hypervisor Managers** |
|
117
|
-
|<sub>/rest/hypervisor-managers</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:
|
118
|
-
|<sub>/rest/hypervisor-managers</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:
|
119
|
-
|<sub>/rest/hypervisor-managers/{id}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
120
|
-
|<sub>/rest/hypervisor-managers/{id}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:
|
121
|
-
|<sub>/rest/hypervisor-managers/{id}</sub> | DELETE | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:
|
117
|
+
|<sub>/rest/hypervisor-managers</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
118
|
+
|<sub>/rest/hypervisor-managers</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
119
|
+
|<sub>/rest/hypervisor-managers/{id}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark:|
|
120
|
+
|<sub>/rest/hypervisor-managers/{id}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
121
|
+
|<sub>/rest/hypervisor-managers/{id}</sub> | DELETE | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
122
122
|
| **Hypervisor Cluster Profiles** |
|
123
|
-
|<sub>/rest/hypervisor-cluster-profiles</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
124
|
-
|<sub>/rest/hypervisor-cluster-profiles</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
125
|
-
|<sub>/rest/hypervisor-cluster-profiles/{id}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
126
|
-
|<sub>/rest/hypervisor-cluster-profiles/{id}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
127
|
-
|<sub>/rest/hypervisor-cluster-profiles/{id}/compliance-preview</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
128
|
-
|<sub>/rest/hypervisor-cluster-profiles/{id}</sub> | DELETE | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|
123
|
+
|<sub>/rest/hypervisor-cluster-profiles</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
124
|
+
|<sub>/rest/hypervisor-cluster-profiles</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
125
|
+
|<sub>/rest/hypervisor-cluster-profiles/{id}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
126
|
+
|<sub>/rest/hypervisor-cluster-profiles/{id}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
127
|
+
|<sub>/rest/hypervisor-cluster-profiles/{id}/compliance-preview</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
128
|
+
|<sub>/rest/hypervisor-cluster-profiles/{id}</sub> | DELETE | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
129
129
|
| **ID Pools** |
|
130
130
|
|<sub>/rest/id-pools/{poolType}</sub> | GET | :white_check_mark: | :white_check_mark: |
|
131
131
|
|<sub>/rest/id-pools/{poolType}</sub> | PUT | :white_check_mark: | :white_check_mark: |
|
@@ -325,6 +325,12 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|
|
325
325
|
|<sub>/rest/scopes/resources/{resource_uri}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:| :white_check_mark: |:white_check_mark: |:white_check_mark: |
|
326
326
|
|<sub>/rest/scopes/resources/{resource_uri}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:| :white_check_mark: |:white_check_mark: |:white_check_mark: |
|
327
327
|
|<sub>/rest/scopes/resources/{resource_uri}</sub> | PATCH | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark:| :white_check_mark: |:white_check_mark: |:white_check_mark: |
|
328
|
+
| **Server Certificate** |
|
329
|
+
|<sub>/rest/certificates/https/remote/{address}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
330
|
+
|<sub>/rest/certificates/servers</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
331
|
+
|<sub>/rest/certificates/servers/{aliasName}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
332
|
+
|<sub>/rest/certificates/servers/{aliasName}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
333
|
+
|<sub>/rest/certificates/servers/{aliasName}</sub> | DELETE | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
328
334
|
| **Server Hardware** |
|
329
335
|
|<sub>/rest/server-hardware</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
330
336
|
|<sub>/rest/server-hardware</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (c) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api800/c7000/hypervisor_cluster_profile'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1000
|
16
|
+
module C7000
|
17
|
+
# Hypervisor cluster profile resource implementation for API1000 C7000
|
18
|
+
class HypervisorClusterProfile < OneviewSDK::API800::C7000::HypervisorClusterProfile
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api800/c7000/hypervisor_manager'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1000
|
16
|
+
module C7000
|
17
|
+
# Hypervisor Manager resource implementation for API1000 C7000
|
18
|
+
class HypervisorManager < OneviewSDK::API800::C7000::HypervisorManager
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api800/c7000/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1000
|
16
|
+
module C7000
|
17
|
+
# Server certificate resource implementation for API1000 C7000
|
18
|
+
class ServerCertificate < OneviewSDK::API800::C7000::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (c) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api800/synergy/hypervisor_cluster_profile'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1000
|
16
|
+
module Synergy
|
17
|
+
# Hypervisor cluster profile resource implementation for API1000 Synergy
|
18
|
+
class HypervisorClusterProfile < OneviewSDK::API800::Synergy::HypervisorClusterProfile
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api800/synergy/hypervisor_manager'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1000
|
16
|
+
module Synergy
|
17
|
+
# Hypervisor Manager resource implementation for API1000 Synergy
|
18
|
+
class HypervisorManager < OneviewSDK::API800::Synergy::HypervisorManager
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api800/synergy/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1000
|
16
|
+
module Synergy
|
17
|
+
# Server certificate resource implementation for API1000 Synergy
|
18
|
+
class ServerCertificate < OneviewSDK::API800::Synergy::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (c) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api1000/c7000/hypervisor_cluster_profile'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1200
|
16
|
+
module C7000
|
17
|
+
# Hypervisor cluster profile resource implementation for API1200 C7000
|
18
|
+
class HypervisorClusterProfile < OneviewSDK::API1000::C7000::HypervisorClusterProfile
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api1000/c7000/hypervisor_manager'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1200
|
16
|
+
module C7000
|
17
|
+
# Hypervisor Manager resource implementation for API1200 C7000
|
18
|
+
class HypervisorManager < OneviewSDK::API1000::C7000::HypervisorManager
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api1000/c7000/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1200
|
16
|
+
module C7000
|
17
|
+
# Server certificate resource implementation for API1200 C7000
|
18
|
+
class ServerCertificate < OneviewSDK::API1000::C7000::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (c) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api1000/synergy/hypervisor_cluster_profile'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1200
|
16
|
+
module Synergy
|
17
|
+
# Hypervisor cluster profile resource implementation for API1200 Synergy
|
18
|
+
class HypervisorClusterProfile < OneviewSDK::API1000::Synergy::HypervisorClusterProfile
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api1000/synergy/hypervisor_manager'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1200
|
16
|
+
module Synergy
|
17
|
+
# Hypervisor Manager resource implementation for API1200 Synergy
|
18
|
+
class HypervisorManager < OneviewSDK::API1000::Synergy::HypervisorManager
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api1000/synergy/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API1200
|
16
|
+
module Synergy
|
17
|
+
# Server certificate resource implementation for API 1200 Synergy
|
18
|
+
class ServerCertificate < OneviewSDK::API1000::Synergy::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# (C) Copyright 2017 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative 'resource'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API600
|
16
|
+
module C7000
|
17
|
+
# Server certificate resource implementation
|
18
|
+
class ServerCertificate < Resource
|
19
|
+
BASE_URI = '/rest/certificates/servers'.freeze
|
20
|
+
DEFAULT_REQUEST_HEADER = { 'requestername' => 'DEFAULT' }.freeze
|
21
|
+
CERT_URI = '/rest/certificates/https/remote/'.freeze
|
22
|
+
def initialize(client, param = {}, api_ver = nil)
|
23
|
+
# Default values
|
24
|
+
super
|
25
|
+
@data['uri'] ||= "#{self.class::BASE_URI}/#{@data['aliasName']}" if @data['aliasName']
|
26
|
+
@data['type'] ||= 'CertificateInfoV2'
|
27
|
+
end
|
28
|
+
|
29
|
+
def import
|
30
|
+
@data.delete('aliasName')
|
31
|
+
create
|
32
|
+
true
|
33
|
+
end
|
34
|
+
|
35
|
+
def delete(*)
|
36
|
+
unavailable_method
|
37
|
+
end
|
38
|
+
|
39
|
+
def retrieve!
|
40
|
+
response = @client.rest_get(self.class::BASE_URI + "/#{@data['aliasName']}")
|
41
|
+
body = @client.response_handler(response)
|
42
|
+
set_all(body)
|
43
|
+
true
|
44
|
+
end
|
45
|
+
|
46
|
+
def get_certificate
|
47
|
+
response = @client.rest_get(self.class::CERT_URI + "/#{@data['remoteIp']}")
|
48
|
+
body = @client.response_handler(response)
|
49
|
+
set_all(body)
|
50
|
+
body
|
51
|
+
end
|
52
|
+
|
53
|
+
def remove
|
54
|
+
header = DEFAULT_REQUEST_HEADER
|
55
|
+
response = @client.rest_delete(self.class::BASE_URI + "/#{@data['aliasName']}", header, @api_version)
|
56
|
+
body = @client.response_handler(response)
|
57
|
+
set_all(body)
|
58
|
+
true
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api600/c7000/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API600
|
16
|
+
module Synergy
|
17
|
+
# Server certificate resource implementation for API 600 Synergy
|
18
|
+
class ServerCertificate < OneviewSDK::API600::C7000::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api600/c7000/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API800
|
16
|
+
module C7000
|
17
|
+
# Server certificate resource implementation for API800 C7000
|
18
|
+
class ServerCertificate < OneviewSDK::API600::C7000::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# You may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software distributed
|
8
|
+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
9
|
+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
# language governing permissions and limitations under the License.
|
11
|
+
|
12
|
+
require_relative '../../api600/synergy/server_certificate'
|
13
|
+
|
14
|
+
module OneviewSDK
|
15
|
+
module API800
|
16
|
+
module Synergy
|
17
|
+
# Server certificate resource implementation for API800 Synergy
|
18
|
+
class ServerCertificate < OneviewSDK::API600::Synergy::ServerCertificate
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/oneview-sdk/version.rb
CHANGED
data/oneview-sdk.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_runtime_dependency 'thor'
|
35
35
|
spec.add_runtime_dependency 'highline'
|
36
|
-
spec.add_runtime_dependency 'pry'
|
36
|
+
spec.add_runtime_dependency 'pry', '~> 0.12.2'
|
37
37
|
spec.add_runtime_dependency 'multipart-post'
|
38
38
|
spec.add_runtime_dependency 'bunny'
|
39
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oneview-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrique Diomede
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2020-
|
14
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|
@@ -45,16 +45,16 @@ dependencies:
|
|
45
45
|
name: pry
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- - "
|
48
|
+
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: 0.12.2
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- - "
|
55
|
+
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 0.12.2
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: multipart-post
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,6 +207,7 @@ extensions: []
|
|
207
207
|
extra_rdoc_files: []
|
208
208
|
files:
|
209
209
|
- CHANGELOG.md
|
210
|
+
- Dockerfile
|
210
211
|
- Gemfile
|
211
212
|
- Guardfile
|
212
213
|
- LICENSE
|
@@ -271,6 +272,8 @@ files:
|
|
271
272
|
- lib/oneview-sdk/resource/api1000/c7000/fc_network.rb
|
272
273
|
- lib/oneview-sdk/resource/api1000/c7000/fcoe_network.rb
|
273
274
|
- lib/oneview-sdk/resource/api1000/c7000/firmware_driver.rb
|
275
|
+
- lib/oneview-sdk/resource/api1000/c7000/hypervisor_cluster_profile.rb
|
276
|
+
- lib/oneview-sdk/resource/api1000/c7000/hypervisor_manager.rb
|
274
277
|
- lib/oneview-sdk/resource/api1000/c7000/interconnect.rb
|
275
278
|
- lib/oneview-sdk/resource/api1000/c7000/lig_uplink_set.rb
|
276
279
|
- lib/oneview-sdk/resource/api1000/c7000/logical_enclosure.rb
|
@@ -278,6 +281,7 @@ files:
|
|
278
281
|
- lib/oneview-sdk/resource/api1000/c7000/logical_interconnect_group.rb
|
279
282
|
- lib/oneview-sdk/resource/api1000/c7000/network_set.rb
|
280
283
|
- lib/oneview-sdk/resource/api1000/c7000/scope.rb
|
284
|
+
- lib/oneview-sdk/resource/api1000/c7000/server_certificate.rb
|
281
285
|
- lib/oneview-sdk/resource/api1000/c7000/server_hardware.rb
|
282
286
|
- lib/oneview-sdk/resource/api1000/c7000/server_hardware_type.rb
|
283
287
|
- lib/oneview-sdk/resource/api1000/c7000/server_profile.rb
|
@@ -296,6 +300,8 @@ files:
|
|
296
300
|
- lib/oneview-sdk/resource/api1000/synergy/fc_network.rb
|
297
301
|
- lib/oneview-sdk/resource/api1000/synergy/fcoe_network.rb
|
298
302
|
- lib/oneview-sdk/resource/api1000/synergy/firmware_driver.rb
|
303
|
+
- lib/oneview-sdk/resource/api1000/synergy/hypervisor_cluster_profile.rb
|
304
|
+
- lib/oneview-sdk/resource/api1000/synergy/hypervisor_manager.rb
|
299
305
|
- lib/oneview-sdk/resource/api1000/synergy/interconnect.rb
|
300
306
|
- lib/oneview-sdk/resource/api1000/synergy/lig_uplink_set.rb
|
301
307
|
- lib/oneview-sdk/resource/api1000/synergy/logical_enclosure.rb
|
@@ -305,6 +311,7 @@ files:
|
|
305
311
|
- lib/oneview-sdk/resource/api1000/synergy/os_deployment_plan.rb
|
306
312
|
- lib/oneview-sdk/resource/api1000/synergy/sas_logical_interconnect_group.rb
|
307
313
|
- lib/oneview-sdk/resource/api1000/synergy/scope.rb
|
314
|
+
- lib/oneview-sdk/resource/api1000/synergy/server_certificate.rb
|
308
315
|
- lib/oneview-sdk/resource/api1000/synergy/server_hardware.rb
|
309
316
|
- lib/oneview-sdk/resource/api1000/synergy/server_hardware_type.rb
|
310
317
|
- lib/oneview-sdk/resource/api1000/synergy/server_profile.rb
|
@@ -324,6 +331,8 @@ files:
|
|
324
331
|
- lib/oneview-sdk/resource/api1200/c7000/fc_network.rb
|
325
332
|
- lib/oneview-sdk/resource/api1200/c7000/fcoe_network.rb
|
326
333
|
- lib/oneview-sdk/resource/api1200/c7000/firmware_driver.rb
|
334
|
+
- lib/oneview-sdk/resource/api1200/c7000/hypervisor_cluster_profile.rb
|
335
|
+
- lib/oneview-sdk/resource/api1200/c7000/hypervisor_manager.rb
|
327
336
|
- lib/oneview-sdk/resource/api1200/c7000/interconnect.rb
|
328
337
|
- lib/oneview-sdk/resource/api1200/c7000/lig_uplink_set.rb
|
329
338
|
- lib/oneview-sdk/resource/api1200/c7000/logical_enclosure.rb
|
@@ -331,6 +340,7 @@ files:
|
|
331
340
|
- lib/oneview-sdk/resource/api1200/c7000/logical_interconnect_group.rb
|
332
341
|
- lib/oneview-sdk/resource/api1200/c7000/network_set.rb
|
333
342
|
- lib/oneview-sdk/resource/api1200/c7000/scope.rb
|
343
|
+
- lib/oneview-sdk/resource/api1200/c7000/server_certificate.rb
|
334
344
|
- lib/oneview-sdk/resource/api1200/c7000/server_hardware.rb
|
335
345
|
- lib/oneview-sdk/resource/api1200/c7000/server_hardware_type.rb
|
336
346
|
- lib/oneview-sdk/resource/api1200/c7000/server_profile.rb
|
@@ -349,6 +359,8 @@ files:
|
|
349
359
|
- lib/oneview-sdk/resource/api1200/synergy/fc_network.rb
|
350
360
|
- lib/oneview-sdk/resource/api1200/synergy/fcoe_network.rb
|
351
361
|
- lib/oneview-sdk/resource/api1200/synergy/firmware_driver.rb
|
362
|
+
- lib/oneview-sdk/resource/api1200/synergy/hypervisor_cluster_profile.rb
|
363
|
+
- lib/oneview-sdk/resource/api1200/synergy/hypervisor_manager.rb
|
352
364
|
- lib/oneview-sdk/resource/api1200/synergy/interconnect.rb
|
353
365
|
- lib/oneview-sdk/resource/api1200/synergy/lig_uplink_set.rb
|
354
366
|
- lib/oneview-sdk/resource/api1200/synergy/logical_enclosure.rb
|
@@ -358,6 +370,7 @@ files:
|
|
358
370
|
- lib/oneview-sdk/resource/api1200/synergy/os_deployment_plan.rb
|
359
371
|
- lib/oneview-sdk/resource/api1200/synergy/sas_logical_interconnect_group.rb
|
360
372
|
- lib/oneview-sdk/resource/api1200/synergy/scope.rb
|
373
|
+
- lib/oneview-sdk/resource/api1200/synergy/server_certificate.rb
|
361
374
|
- lib/oneview-sdk/resource/api1200/synergy/server_hardware.rb
|
362
375
|
- lib/oneview-sdk/resource/api1200/synergy/server_hardware_type.rb
|
363
376
|
- lib/oneview-sdk/resource/api1200/synergy/server_profile.rb
|
@@ -647,6 +660,7 @@ files:
|
|
647
660
|
- lib/oneview-sdk/resource/api600/c7000/resource.rb
|
648
661
|
- lib/oneview-sdk/resource/api600/c7000/san_manager.rb
|
649
662
|
- lib/oneview-sdk/resource/api600/c7000/scope.rb
|
663
|
+
- lib/oneview-sdk/resource/api600/c7000/server_certificate.rb
|
650
664
|
- lib/oneview-sdk/resource/api600/c7000/server_hardware.rb
|
651
665
|
- lib/oneview-sdk/resource/api600/c7000/server_hardware_type.rb
|
652
666
|
- lib/oneview-sdk/resource/api600/c7000/server_profile.rb
|
@@ -698,6 +712,7 @@ files:
|
|
698
712
|
- lib/oneview-sdk/resource/api600/synergy/sas_logical_interconnect.rb
|
699
713
|
- lib/oneview-sdk/resource/api600/synergy/sas_logical_interconnect_group.rb
|
700
714
|
- lib/oneview-sdk/resource/api600/synergy/scope.rb
|
715
|
+
- lib/oneview-sdk/resource/api600/synergy/server_certificate.rb
|
701
716
|
- lib/oneview-sdk/resource/api600/synergy/server_hardware.rb
|
702
717
|
- lib/oneview-sdk/resource/api600/synergy/server_hardware_type.rb
|
703
718
|
- lib/oneview-sdk/resource/api600/synergy/server_profile.rb
|
@@ -732,6 +747,7 @@ files:
|
|
732
747
|
- lib/oneview-sdk/resource/api800/c7000/logical_interconnect_group.rb
|
733
748
|
- lib/oneview-sdk/resource/api800/c7000/network_set.rb
|
734
749
|
- lib/oneview-sdk/resource/api800/c7000/scope.rb
|
750
|
+
- lib/oneview-sdk/resource/api800/c7000/server_certificate.rb
|
735
751
|
- lib/oneview-sdk/resource/api800/c7000/server_hardware.rb
|
736
752
|
- lib/oneview-sdk/resource/api800/c7000/server_hardware_type.rb
|
737
753
|
- lib/oneview-sdk/resource/api800/c7000/server_profile.rb
|
@@ -761,6 +777,7 @@ files:
|
|
761
777
|
- lib/oneview-sdk/resource/api800/synergy/os_deployment_plan.rb
|
762
778
|
- lib/oneview-sdk/resource/api800/synergy/sas_logical_interconnect_group.rb
|
763
779
|
- lib/oneview-sdk/resource/api800/synergy/scope.rb
|
780
|
+
- lib/oneview-sdk/resource/api800/synergy/server_certificate.rb
|
764
781
|
- lib/oneview-sdk/resource/api800/synergy/server_hardware.rb
|
765
782
|
- lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb
|
766
783
|
- lib/oneview-sdk/resource/api800/synergy/server_profile.rb
|