Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from anusha94/master
Browse files Browse the repository at this point in the history
vSphere 7.0 Update 1 GA
  • Loading branch information
anusha94 authored Oct 15, 2020
2 parents 1cde201 + 4155d4f commit 41466d6
Show file tree
Hide file tree
Showing 176 changed files with 18,626 additions and 1,659 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This document for the vSphere Automation SDK for perl describes -
2. The procedure for contributing new samples

## Supported OnPrem vCenter Releases:
vCenter 6.0, 6.5, 6.7, 6.7U1 and 7.0
vCenter 6.0, 6.5, 6.7, 6.7U1, 7.0 and 7.0U1

Please refer to the notes in each sample for detailed compatibility information.

Expand Down Expand Up @@ -132,8 +132,8 @@ Use a command like the following to get list of VMs present in vCenter.

### vSphere API Documentation

* [vSphere 7.0 (latest)](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/7.0.0.1/index.html)
* Previous releases: [6.7.0](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/6.7.0) [6.5.0](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/6.5.0) [6.7.1](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/6.7.1/)
* [vSphere 7.0 Update 1(latest)](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/7.0.1.0/annotated.html)
* Previous releases: [7.0](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/7.0.0.1/index.html) [6.7.1](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/6.7.1/) [6.7.0](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/6.7.0) [6.5.0](https://vmware.github.io/vsphere-automation-sdk-perl/vsphere/6.5.0)

## Repository Administrator Resources
### Board Members
Expand All @@ -151,5 +151,5 @@ Items added to the repository, including items from the Board members, require 2
* [vSphere Automation SDK Overview](http://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.vapi.progguide.doc/GUID-AF73991C-FC1C-47DF-8362-184B6544CFDE.html)
* [VMware Code](https://code.vmware.com/home)
* [VMware Developer Community](https://communities.vmware.com/community/vmtn/developer)
* VMware vSphere [REST API Reference documentation](https://code.vmware.com/apis/366/vsphere-automation)
* VMware vSphere [REST API Reference documentation](https://developer.vmware.com/docs/vsphere-automation/latest/)
* [VMware Perl forum](https://code.vmware.com/forums/7562/vsphere-automation-sdk-for-perl)
6 changes: 4 additions & 2 deletions lib/sdk/Com/Vmware/Appliance/SubtaskInfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ sub set_progress {
#
# @retval result - The current value of the field.
# Result of the operation. If an operation reports partial results before it completes,
# this *field* could be *set* before the null has the value
# this *field* could be *set* before the
# :attr:`Com::Vmware::Cis::Task::CommonInfo.status` has the value
# :attr:`Com::Vmware::Cis::Task::Status.SUCCEEDED` . The value could change as the
# operation progresses. This *field* was added in vSphere API 6.7.
#
Expand All @@ -119,7 +120,8 @@ sub get_result {
#
# @param result - New value for the field.
# Result of the operation. If an operation reports partial results before it completes,
# this *field* could be *set* before the null has the value
# this *field* could be *set* before the
# :attr:`Com::Vmware::Cis::Task::CommonInfo.status` has the value
# :attr:`Com::Vmware::Cis::Task::Status.SUCCEEDED` . The value could change as the
# operation progresses. This *field* was added in vSphere API 6.7.
#
Expand Down
256 changes: 256 additions & 0 deletions lib/sdk/Com/Vmware/Appliance/System/Security/GlobalFips.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
########################################################################
# Copyright (C) 2013 - 2014 VMware, Inc.
########################################################################

## @file GlobalFips.pm
# Auto generated vAPI skeleton file.
# DO NOT MODIFY!
#
#

#use Com::Vmware::Vapi::Std::Errors;

## @class Com::Vmware::Appliance::System::Security::GlobalFips
# The ``Com::Vmware::Appliance::System::Security::GlobalFips`` *interface* provides
# *methods* to enable/disable appliance FIPS mode.
#

package Com::Vmware::Appliance::System::Security::GlobalFips;

#
# Core Perl modules
#
use strict;
use warnings;
use Carp;

#
# Vapi Perl modules
#
use Com::Vmware::Vapi::Bindings::Type::StructType;
use Com::Vmware::Appliance::System::Security::GlobalFipsStub;

#
# Base class
#
use base qw(Com::Vmware::Vapi::Bindings::VapiInterface);

#
# Identifier of the service
#
use constant _VAPI_SERVICE_ID => 'com.vmware.appliance.system.security.global_fips';


## @method new ()
# Constructor to initialize the object
#
# @param api_provider - protocol connection to use with
# stubs created by this factory
# @param StubConfig - Stub's additional configuration
#
# @retval
# Blessed object
#
sub new {
my ($class, %args) = @_;
$class = ref($class) || $class;
my $stub_config = $args {stub_config};
my $api_provider = $args {api_provider};

my $self = $class->SUPER::new('stub_config' => $stub_config,
'api_provider' => $api_provider);
bless $self, $class;
return $self;
}

## @method get ()
# Get current appliance FIPS settings.
#
# @retval
# Current FIPS settings state.
# The return type will be Com::Vmware::Appliance::System::Security::GlobalFips::Info
#
# @throw Com::Vmware::Vapi::Std::Errors::Error
# Generic error
#
sub get {
my ($self, %args) = @_;
return $self->invoke(method_name => 'get', method_args => {});
}

## @method update ()
# Enable/Disable Global FIPS mode for the appliance.
#
# @param spec [REQUIRED]
# . The value must be Com::Vmware::Appliance::System::Security::GlobalFips::UpdateSpec.
#
# @throw Com::Vmware::Vapi::Std::Errors::Error
# Generic error
#
sub update {
my ($self, %args) = @_;
my $spec = $args {spec};

$self->validate_args (method_name => 'update',
method_args => \%args);

return $self->invoke (method_name => 'update',
method_args => \%args);
}

1;

#########################################################################################
# Begins enumerations for the Com::Vmware::Appliance::System::Security::GlobalFips service
#########################################################################################



#########################################################################################
# Ends enumerations for the Com::Vmware::Appliance::System::Security::GlobalFips service
#########################################################################################

#########################################################################################
# Begins structures for the Com::Vmware::Appliance::System::Security::GlobalFips service
#########################################################################################

## @class Com::Vmware::Appliance::System::Security::GlobalFips::UpdateSpec
#
#


package Com::Vmware::Appliance::System::Security::GlobalFips::UpdateSpec;

#
# Base class
#
use base qw(Com::Vmware::Vapi::Bindings::VapiStruct);

#
# vApi modules
#
use Com::Vmware::Vapi::Data::UnionValidator;

## @method new ()
# Constructor to initialize the Com::Vmware::Appliance::System::Security::GlobalFips::UpdateSpec structure
#
# @retval
# Blessed object
#
sub new {
my ($class, %args) = @_;
$class = ref($class) || $class;
my $validatorList = [];



my $self = $class->SUPER::new('validator_list' => $validatorList, %args);
$self->{enabled} = $args{'enabled'};

$self->set_binding_class('binding_class' => 'Com::Vmware::Appliance::System::Security::GlobalFips::UpdateSpec');
$self->set_binding_name('name' => 'com.vmware.appliance.system.security.global_fips.update_spec');
$self->set_binding_field('key' => 'enabled', 'value' => new Com::Vmware::Vapi::Bindings::Type::OptionalType('element_type' => new Com::Vmware::Vapi::Bindings::Type::BooleanType()));
bless $self, $class;
return $self;
}

## @method get_enabled ()
# Gets the value of 'enabled' property.
#
# @retval enabled - The current value of the field.
# FIPS setting state.
#
# Optional#
sub get_enabled {
my ($self, %args) = @_;
return $self->{'enabled'};
}

## @method set_enabled ()
# Sets the given value for 'enabled' property.
#
# @param enabled - New value for the field.
# FIPS setting state.
#
sub set_enabled {
my ($self, %args) = @_;
$self->{'enabled'} = $args{'enabled'};
return;
}


1;


## @class Com::Vmware::Appliance::System::Security::GlobalFips::Info
#
#


package Com::Vmware::Appliance::System::Security::GlobalFips::Info;

#
# Base class
#
use base qw(Com::Vmware::Vapi::Bindings::VapiStruct);

#
# vApi modules
#
use Com::Vmware::Vapi::Data::UnionValidator;

## @method new ()
# Constructor to initialize the Com::Vmware::Appliance::System::Security::GlobalFips::Info structure
#
# @retval
# Blessed object
#
sub new {
my ($class, %args) = @_;
$class = ref($class) || $class;
my $validatorList = [];



my $self = $class->SUPER::new('validator_list' => $validatorList, %args);
$self->{enabled} = $args{'enabled'};

$self->set_binding_class('binding_class' => 'Com::Vmware::Appliance::System::Security::GlobalFips::Info');
$self->set_binding_name('name' => 'com.vmware.appliance.system.security.global_fips.info');
$self->set_binding_field('key' => 'enabled', 'value' => new Com::Vmware::Vapi::Bindings::Type::BooleanType());
bless $self, $class;
return $self;
}

## @method get_enabled ()
# Gets the value of 'enabled' property.
#
# @retval enabled - The current value of the field.
# FIPS setting state.
#
# boolean#
sub get_enabled {
my ($self, %args) = @_;
return $self->{'enabled'};
}

## @method set_enabled ()
# Sets the given value for 'enabled' property.
#
# @param enabled - New value for the field.
# FIPS setting state.
#
sub set_enabled {
my ($self, %args) = @_;
$self->{'enabled'} = $args{'enabled'};
return;
}


1;



#########################################################################################
# Ends structures for the Com::Vmware::Appliance::System::Security::GlobalFips service
#########################################################################################
Loading

0 comments on commit 41466d6

Please sign in to comment.